org.apache.qpid.client.message
Class AMQMessage
java.lang.Object
org.apache.qpid.client.message.AMQMessage
- Direct Known Subclasses:
- AbstractJMSMessage
public class AMQMessage
- extends java.lang.Object
Constructor Summary |
AMQMessage(org.apache.qpid.framing.ContentHeaderProperties properties)
|
AMQMessage(org.apache.qpid.framing.ContentHeaderProperties properties,
long deliveryTag)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_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
AMQMessage
public AMQMessage(org.apache.qpid.framing.ContentHeaderProperties properties,
long deliveryTag)
AMQMessage
public AMQMessage(org.apache.qpid.framing.ContentHeaderProperties properties)
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