org.objectweb.joram.shared.client

Class ConsumerSubRequest

Implemented Interfaces:
java.io.Serializable

public class ConsumerSubRequest
extends AbstractJmsRequest

A ConsumerSubRequest is sent by a constructing MessageConsumer destinated to consume messages on a topic.

See Also:
Serialized Form

Field Summary

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

target

Constructor Summary

ConsumerSubRequest()
Constructs a ConsumerSubRequest.
ConsumerSubRequest(String topic, String subName, String selector, boolean noLocal, boolean durable)
Constructs a ConsumerSubRequest.

Method Summary

boolean
getDurable()
Returns true for a durable subscription.
boolean
getNoLocal()
Returns true for not consuming the local messages.
String
getSelector()
Returns the selector for filtering the messages.
String
getSubName()
Returns the name of the subscription.
void
setDurable(boolean durable)
Sets the durable attribute.
void
setNoLocal(boolean noLocal)
Sets the noLocal attribute.
void
setSelector(String selector)
Sets the selector.
void
setSubName(String subName)
Sets the subscription name.
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

ConsumerSubRequest

public ConsumerSubRequest()
Constructs a ConsumerSubRequest.


ConsumerSubRequest

public ConsumerSubRequest(String topic,
                          String subName,
                          String selector,
                          boolean noLocal,
                          boolean durable)
Constructs a ConsumerSubRequest.

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

Method Details

getDurable

public boolean getDurable()
Returns true for a durable subscription.


getNoLocal

public boolean getNoLocal()
Returns true for not consuming the local messages.


getSelector

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


getSubName

public String getSubName()
Returns the name of the subscription.


setDurable

public void setDurable(boolean durable)
Sets the durable attribute.


setNoLocal

public void setNoLocal(boolean noLocal)
Sets the noLocal attribute.


setSelector

public void setSelector(String selector)
Sets the selector.


setSubName

public void setSubName(String subName)
Sets the subscription name.


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