org.objectweb.joram.shared.client
Class ConsumerReceiveRequest
- java.io.Serializable
public class ConsumerReceiveRequest
A ConsumerReceiveRequest
is sent by a
MessageConsumer
when requesting a message.
- Serialized Form
ConsumerReceiveRequest
public ConsumerReceiveRequest()
Constructs a ConsumerReceiveRequest
.
ConsumerReceiveRequest
public ConsumerReceiveRequest(String targetName,
String selector,
long timeToLive,
boolean queueMode)
Constructs a 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.
getQueueMode
public boolean getQueueMode()
Returns true
if the request is destinated to a queue.
getSelector
public String getSelector()
Returns the selector for filtering the messages.
getTimeToLive
public long getTimeToLive()
Returns the time to live value in milliseconds.
setQueueMode
public void setQueueMode(boolean queueMode)
Sets the target destination type.
setSelector
public void setSelector(String selector)
Sets the selector.
setTimeToLive
public void setTimeToLive(long timeToLive)
Sets the time to live value.
soapDecode
public static Object soapDecode(Hashtable h)
- soapDecode in interface AbstractJmsRequest
Copyright B) 2004 Scalagent - All rights reserved