|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.joram.shared.client.AbstractJmsMessage
org.objectweb.joram.shared.client.AbstractJmsRequest
org.objectweb.joram.shared.client.ConsumerReceiveRequest
public final class ConsumerReceiveRequest
A ConsumerReceiveRequest
is sent by a
MessageConsumer
when requesting a message.
Field Summary | |
---|---|
private boolean |
queueMode
true if the request is destinated to a queue. |
private boolean |
receiveAck
|
private java.lang.String |
selector
The selector for filtering messages on a queue. |
private static long |
serialVersionUID
define serialVersionUID for interoperability |
private long |
timeToLive
The time to live value of the request (negative for infinite). |
Fields inherited from class org.objectweb.joram.shared.client.AbstractJmsRequest |
---|
requestId, target |
Constructor Summary | |
---|---|
ConsumerReceiveRequest()
Constructs a ConsumerReceiveRequest . |
|
ConsumerReceiveRequest(java.lang.String targetName,
java.lang.String selector,
long timeToLive,
boolean queueMode)
Constructs a ConsumerReceiveRequest . |
Method Summary | |
---|---|
protected int |
getClassId()
|
boolean |
getQueueMode()
Returns true if the request is destinated to a queue. |
boolean |
getReceiveAck()
|
java.lang.String |
getSelector()
Returns the selector for filtering the messages. |
long |
getTimeToLive()
Returns the time to live value in milliseconds. |
void |
readFrom(java.io.InputStream is)
The object implements the readFrom method to restore its contents from the input stream. |
void |
setQueueMode(boolean queueMode)
Sets the target destination type. |
void |
setReceiveAck(boolean receiveAck)
|
void |
setSelector(java.lang.String selector)
Sets the selector. |
void |
setTimeToLive(long timeToLive)
Sets the time to live value. |
void |
writeTo(java.io.OutputStream os)
The object implements the writeTo method to write its contents to the output stream. |
Methods inherited from class org.objectweb.joram.shared.client.AbstractJmsRequest |
---|
getRequestId, getTarget, setRequestId, setTarget, toString, toString |
Methods inherited from class org.objectweb.joram.shared.client.AbstractJmsMessage |
---|
read, readExternal, soapCode, soapDecode, write, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private java.lang.String selector
private long timeToLive
private boolean queueMode
true
if the request is destinated to a queue.
private boolean receiveAck
Constructor Detail |
---|
public ConsumerReceiveRequest(java.lang.String targetName, java.lang.String selector, long timeToLive, boolean queueMode)
ConsumerReceiveRequest
.
targetName
- Name of the target queue or subscription.selector
- The selector for filtering messages, if any.timeToLive
- Time to live value in milliseconds, negative for
infinite.queueMode
- true
if this request is destinated to a
queue.public ConsumerReceiveRequest()
ConsumerReceiveRequest
.
Method Detail |
---|
public void setSelector(java.lang.String selector)
public java.lang.String getSelector()
public void setTimeToLive(long timeToLive)
public long getTimeToLive()
public void setQueueMode(boolean queueMode)
public boolean getQueueMode()
true
if the request is destinated to a queue.
public void setReceiveAck(boolean receiveAck)
public final boolean getReceiveAck()
protected int getClassId()
getClassId
in class AbstractJmsMessage
public void writeTo(java.io.OutputStream os) throws java.io.IOException
writeTo
in interface Streamable
writeTo
in class AbstractJmsRequest
os
- the stream to write the object to
java.io.IOException
public void readFrom(java.io.InputStream is) throws java.io.IOException
readFrom
in interface Streamable
readFrom
in class AbstractJmsRequest
is
- the stream to read data from in order to restore the object
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |