org.apache.qpid.client.message
Class UnprocessedMessage

java.lang.Object
  extended by 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.


Field Summary
 java.util.List bodies
          List of ContentBody instances.
 org.apache.qpid.framing.BasicReturnBody bounceBody
           
 int channelId
           
 org.apache.qpid.framing.ContentHeaderBody contentHeader
           
 org.apache.qpid.framing.BasicDeliverBody deliverBody
           
 
Constructor Summary
UnprocessedMessage()
           
 
Method Summary
 boolean isAllBodyDataReceived()
           
 void receiveBody(org.apache.qpid.framing.ContentBody body)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

Constructor Detail

UnprocessedMessage

public UnprocessedMessage()
Method Detail

receiveBody

public void receiveBody(org.apache.qpid.framing.ContentBody body)
                 throws UnexpectedBodyReceivedException
Throws:
UnexpectedBodyReceivedException

isAllBodyDataReceived

public boolean isAllBodyDataReceived()