com.rabbitmq.client.impl
Class AMQCommand.Assembler
java.lang.Object
com.rabbitmq.client.impl.AMQCommand.Assembler
- Enclosing class:
- AMQCommand
public class AMQCommand.Assembler
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
AMQCommand.Assembler
public AMQCommand.Assembler()
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