|
Joram 5.2.1 | ||||||||
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.ConsumerSubRequest
public final class ConsumerSubRequest
A ConsumerSubRequest
is sent by a constructing
MessageConsumer
destinated to consume messages on a topic.
Field Summary |
---|
Fields inherited from class org.objectweb.joram.shared.client.AbstractJmsRequest |
---|
requestId, target |
Constructor Summary | |
---|---|
ConsumerSubRequest()
Constructs a ConsumerSubRequest . |
|
ConsumerSubRequest(java.lang.String topic,
java.lang.String subName,
java.lang.String selector,
boolean noLocal,
boolean durable,
boolean asyncSub)
Constructs a ConsumerSubRequest . |
Method Summary | |
---|---|
protected int |
getClassId()
|
boolean |
getDurable()
Returns true for a durable subscription. |
boolean |
getNoLocal()
Returns true for not consuming the local messages. |
java.lang.String |
getSelector()
Returns the selector for filtering the messages. |
java.lang.String |
getSubName()
Returns the name of the subscription. |
boolean |
isAsyncSubscription()
Returns true for asynchronous subscription. |
void |
readFrom(java.io.InputStream is)
The object implements the readFrom method to restore its contents from the input stream. |
void |
setDurable(boolean durable)
Sets the durable attribute. |
void |
setNoLocal(boolean noLocal)
Sets the noLocal attribute. |
void |
setSelector(java.lang.String selector)
Sets the selector. |
void |
setSubName(java.lang.String subName)
Sets the subscription name. |
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 |
Constructor Detail |
---|
public ConsumerSubRequest(java.lang.String topic, java.lang.String subName, java.lang.String selector, boolean noLocal, boolean durable, boolean asyncSub)
ConsumerSubRequest
.
topic
- The topic identifier the client wishes to subscribe to.subName
- The subscription's name.selector
- The selector for filtering messages, if any.noLocal
- true
for not consuming the local messages.durable
- true
for a durable subscription.asyncSub
- true
for a asynchronous subscription request.public ConsumerSubRequest()
ConsumerSubRequest
.
Method Detail |
---|
public void setSubName(java.lang.String subName)
public java.lang.String getSubName()
public void setSelector(java.lang.String selector)
public java.lang.String getSelector()
public void setNoLocal(boolean noLocal)
public boolean getNoLocal()
true
for not consuming the local messages.
public void setDurable(boolean durable)
public boolean getDurable()
true
for a durable subscription.
public boolean isAsyncSubscription()
true
for asynchronous subscription.
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
|
Joram 5.2.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |