com.rabbitmq.client.impl
Class AMQCommand.Assembler

java.lang.Object
  extended by com.rabbitmq.client.impl.AMQCommand.Assembler
Enclosing class:
AMQCommand

public class AMQCommand.Assembler
extends java.lang.Object


Field Summary
 long remainingBodyBytes
          How many more bytes of content body are expected to arrive from the broker.
 int state
          Current state, used to decide how to handle each incoming frame.
static int STATE_COMPLETE
           
static int STATE_EXPECTING_CONTENT_BODY
           
static int STATE_EXPECTING_CONTENT_HEADER
           
static int STATE_EXPECTING_METHOD
           
 
Constructor Summary
AMQCommand.Assembler()
           
 
Method Summary
 AMQCommand completedCommand()
          Used to decide when an incoming command is ready for processing
 AMQCommand handleFrame(Frame f)
           
 void updateContentBodyState()
          Decides whether more body frames are expected
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATE_EXPECTING_METHOD

public static final int STATE_EXPECTING_METHOD
See Also:
Constant Field Values

STATE_EXPECTING_CONTENT_HEADER

public static final int STATE_EXPECTING_CONTENT_HEADER
See Also:
Constant Field Values

STATE_EXPECTING_CONTENT_BODY

public static final int STATE_EXPECTING_CONTENT_BODY
See Also:
Constant Field Values

STATE_COMPLETE

public static final int STATE_COMPLETE
See Also:
Constant Field Values

state

public int state
Current state, used to decide how to handle each incoming frame.


remainingBodyBytes

public long remainingBodyBytes
How many more bytes of content body are expected to arrive from the broker.

Constructor Detail

AMQCommand.Assembler

public AMQCommand.Assembler()
Method Detail

completedCommand

public AMQCommand completedCommand()
Used to decide when an incoming command is ready for processing

Returns:
the completed command, if appropriate

updateContentBodyState

public void updateContentBodyState()
Decides whether more body frames are expected


handleFrame

public AMQCommand handleFrame(Frame f)
                       throws java.io.IOException
Throws:
java.io.IOException