org.apache.qpid.client.message
Class UnprocessedMessage
java.lang.Object
org.apache.qpid.client.message.UnprocessedMessage
public class UnprocessedMessage
- extends java.lang.Object
This class contains everything needed to process a JMS message. It assembles the
deliver body, the content header and the content body/ies.
Note that the actual work of creating a JMS message for the client code's use is done
outside of the MINA dispatcher thread in order to minimise the amount of work done in
the MINA dispatcher thread.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
deliverBody
public org.apache.qpid.framing.BasicDeliverBody deliverBody
bounceBody
public org.apache.qpid.framing.BasicReturnBody bounceBody
channelId
public int channelId
contentHeader
public org.apache.qpid.framing.ContentHeaderBody contentHeader
bodies
public java.util.List bodies
- List of ContentBody instances. Due to fragmentation you don't know how big this will be in general
UnprocessedMessage
public UnprocessedMessage()
receiveBody
public void receiveBody(org.apache.qpid.framing.ContentBody body)
throws UnexpectedBodyReceivedException
- Throws:
UnexpectedBodyReceivedException
isAllBodyDataReceived
public boolean isAllBodyDataReceived()