org.jboss.jms.tx
Class AckInfo
java.lang.Object
org.jboss.jms.tx.AckInfo
- All Implemented Interfaces:
- java.io.Externalizable, java.io.Serializable
- public class AckInfo
- extends java.lang.Object
- implements java.io.Externalizable
Struct like class for holding information regarding an acknowledgement to be passed to the server
for processing.
- Author:
- Ovidiu Feodorov
$Id: AckInfo.java 1323 2006-09-20 00:48:57Z ovidiu.feodorov@jboss.com $
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
messageID
protected long messageID
consumerID
protected int consumerID
msg
protected transient MessageProxy msg
AckInfo
public AckInfo()
AckInfo
public AckInfo(MessageProxy proxy,
int consumerID)
AckInfo
public AckInfo(MessageProxy proxy,
int consumerID,
int ackMode)
- Parameters:
ackMode
- - one of Session.AUTO_ACKNOWLEDGE, Session.CLIENT_ACKNOWLEDGE, etc.
AckInfo
public AckInfo(long messageID,
int consumerID,
int ackMode)
- Parameters:
ackMode
- - one of Session.AUTO_ACKNOWLEDGE, Session.CLIENT_ACKNOWLEDGE, etc.
getMessageID
public long getMessageID()
getConsumerID
public int getConsumerID()
getMessage
public MessageProxy getMessage()
getAckMode
public int getAckMode()
- Returns:
- one of Session.AUTO_ACKNOWLEDGE, Session.CLIENT_ACKNOWLEDGE ..., or -1 if it has not
previously set
toString
public java.lang.String toString()
writeExternal
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
- Specified by:
writeExternal
in interface java.io.Externalizable
- Throws:
java.io.IOException
readExternal
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Specified by:
readExternal
in interface java.io.Externalizable
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
Copyright © 2006 JBoss Inc. All Rights Reserved.