org.objectweb.joram.shared.client

Class ConsumerAckRequest

Implemented Interfaces:
java.io.Serializable

public class ConsumerAckRequest
extends AbstractJmsRequest

A ConsumerAckRequest instance is used by a MessageConsumer for acknowledging a received message.

See Also:
Serialized Form

Field Summary

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

target

Constructor Summary

ConsumerAckRequest()
Constructs a ConsumerAckRequest instance.
ConsumerAckRequest(String targetName, String id, boolean queueMode)
Constructs a ConsumerAckRequest instance.

Method Summary

String
getId()
Returns the acknowledged message identifier.
boolean
getQueueMode()
Returns true if the request is destinated to a queue.
void
setId(String id)
Sets the acknowledged message identifier.
void
setQueueMode(boolean queueMode)
Sets the target destination type.
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

ConsumerAckRequest

public ConsumerAckRequest()
Constructs a ConsumerAckRequest instance.


ConsumerAckRequest

public ConsumerAckRequest(String targetName,
                          String id,
                          boolean queueMode)
Constructs a ConsumerAckRequest instance.

Parameters:
targetName - Name of the target queue or subscription.
id - The message identifier.
queueMode - true if this request is destinated to a queue.

Method Details

getId

public String getId()
Returns the acknowledged message identifier.


getQueueMode

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


setId

public void setId(String id)
Sets the acknowledged message identifier.


setQueueMode

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


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