org.objectweb.joram.shared.client

Class SessAckRequest

Implemented Interfaces:
java.io.Serializable

public class SessAckRequest
extends AbstractJmsRequest

A SessAckRequest instance is used by a Session for acknowledging the messages it consumed.

See Also:
Serialized Form

Field Summary

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

target

Constructor Summary

SessAckRequest()
Constructs a SessAckRequest instance.
SessAckRequest(String targetName, Vector ids, boolean queueMode)
Constructs a SessAckRequest instance.

Method Summary

void
addId(String id)
Vector
getIds()
Returns the vector of acknowledged messages identifiers.
boolean
getQueueMode()
Returns true if the request is destinated to a queue.
void
setIds(Vector ids)
Sets the vector of identifiers.
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

SessAckRequest

public SessAckRequest()
Constructs a SessAckRequest instance.


SessAckRequest

public SessAckRequest(String targetName,
                      Vector ids,
                      boolean queueMode)
Constructs a SessAckRequest instance.

Parameters:
targetName - Name of the target queue or subscription.
ids - Vector of acknowledged message identifiers.
queueMode - true if this request is destinated to a queue.

Method Details

addId

public void addId(String id)


getIds

public Vector getIds()
Returns the vector of acknowledged messages identifiers.


getQueueMode

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


setIds

public void setIds(Vector ids)
Sets the vector of identifiers.


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