org.objectweb.joram.shared.client

Class ConsumerReceiveRequest

Implemented Interfaces:
java.io.Serializable

public class ConsumerReceiveRequest
extends AbstractJmsRequest

A ConsumerReceiveRequest is sent by a MessageConsumer when requesting a message.

See Also:
Serialized Form

Field Summary

Fields inherited from class org.objectweb.joram.shared.client.AbstractJmsRequest

target

Constructor Summary

ConsumerReceiveRequest()
Constructs a ConsumerReceiveRequest.
ConsumerReceiveRequest(String targetName, String selector, long timeToLive, boolean queueMode)
Constructs a ConsumerReceiveRequest.

Method Summary

boolean
getQueueMode()
Returns true if the request is destinated to a queue.
String
getSelector()
Returns the selector for filtering the messages.
long
getTimeToLive()
Returns the time to live value in milliseconds.
void
setQueueMode(boolean queueMode)
Sets the target destination type.
void
setSelector(String selector)
Sets the selector.
void
setTimeToLive(long timeToLive)
Sets the time to live value.
Hashtable
soapCode()
static Object
soapDecode(Hashtable h)

Methods inherited from class org.objectweb.joram.shared.client.AbstractJmsRequest

getKey, getRequestId, getTarget, setRequestId, setTarget, soapCode, soapDecode, toString

Constructor Details

ConsumerReceiveRequest

public ConsumerReceiveRequest()
Constructs a ConsumerReceiveRequest.


ConsumerReceiveRequest

public ConsumerReceiveRequest(String targetName,
                              String selector,
                              long timeToLive,
                              boolean queueMode)
Constructs a ConsumerReceiveRequest.

Parameters:
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.

Method Details

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.


soapCode

public Hashtable soapCode()
Overrides:
soapCode in interface AbstractJmsRequest


soapDecode

public static Object soapDecode(Hashtable h)
Overrides:
soapDecode in interface AbstractJmsRequest


Copyright B) 2004 Scalagent - All rights reserved