org.objectweb.joram.shared.client
Class ConsumerReceiveRequest

java.lang.Object
  extended byorg.objectweb.joram.shared.client.AbstractJmsRequest
      extended byorg.objectweb.joram.shared.client.ConsumerReceiveRequest
All 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(java.lang.String targetName, java.lang.String selector, long timeToLive, boolean queueMode)
          Constructs a ConsumerReceiveRequest.
 
Method Summary
 boolean getQueueMode()
          Returns true if the request is destinated to a queue.
 java.lang.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(java.lang.String selector)
          Sets the selector.
 void setTimeToLive(long timeToLive)
          Sets the time to live value.
 java.util.Hashtable soapCode()
           
static java.lang.Object soapDecode(java.util.Hashtable h)
           
 
Methods inherited from class org.objectweb.joram.shared.client.AbstractJmsRequest
getKey, getRequestId, getTarget, setRequestId, setTarget, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConsumerReceiveRequest

public ConsumerReceiveRequest(java.lang.String targetName,
                              java.lang.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.

ConsumerReceiveRequest

public ConsumerReceiveRequest()
Constructs a ConsumerReceiveRequest.

Method Detail

setSelector

public void setSelector(java.lang.String selector)
Sets the selector.


setTimeToLive

public void setTimeToLive(long timeToLive)
Sets the time to live value.


setQueueMode

public void setQueueMode(boolean queueMode)
Sets the target destination type.


getSelector

public java.lang.String getSelector()
Returns the selector for filtering the messages.


getTimeToLive

public long getTimeToLive()
Returns the time to live value in milliseconds.


getQueueMode

public boolean getQueueMode()
Returns true if the request is destinated to a queue.


soapCode

public java.util.Hashtable soapCode()
Overrides:
soapCode in class AbstractJmsRequest

soapDecode

public static java.lang.Object soapDecode(java.util.Hashtable h)


Copyright ? 2004 Scalagent - All rights reserved