org.apache.qpid.client.message
Class AMQMessage

java.lang.Object
  extended by org.apache.qpid.client.message.AMQMessage
Direct Known Subclasses:
AbstractJMSMessage

public class AMQMessage
extends java.lang.Object


Field Summary
protected  org.apache.qpid.framing.ContentHeaderProperties _contentHeaderProperties
           
protected  long _deliveryTag
           
protected  AMQSession _session
          If the acknowledge mode is CLIENT_ACKNOWLEDGE the session is required
 
Constructor Summary
AMQMessage(org.apache.qpid.framing.ContentHeaderProperties properties)
           
AMQMessage(org.apache.qpid.framing.ContentHeaderProperties properties, long deliveryTag)
           
 
Method Summary
 AMQSession getAMQSession()
           
 long getDeliveryTag()
          Get the AMQ message number assigned to this message
 void setAMQSession(AMQSession s)
          The session is set when CLIENT_ACKNOWLEDGE mode is used so that the CHANNEL ACK can be sent when the user calls acknowledge()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_contentHeaderProperties

protected org.apache.qpid.framing.ContentHeaderProperties _contentHeaderProperties

_session

protected AMQSession _session
If the acknowledge mode is CLIENT_ACKNOWLEDGE the session is required


_deliveryTag

protected final long _deliveryTag
Constructor Detail

AMQMessage

public AMQMessage(org.apache.qpid.framing.ContentHeaderProperties properties,
                  long deliveryTag)

AMQMessage

public AMQMessage(org.apache.qpid.framing.ContentHeaderProperties properties)
Method Detail

setAMQSession

public void setAMQSession(AMQSession s)
The session is set when CLIENT_ACKNOWLEDGE mode is used so that the CHANNEL ACK can be sent when the user calls acknowledge()

Parameters:
s - the AMQ session that delivered this message

getAMQSession

public AMQSession getAMQSession()

getDeliveryTag

public long getDeliveryTag()
Get the AMQ message number assigned to this message

Returns:
the message number