java.lang.Object | |
↳ | com.rabbitmq.client.impl.AMQCommand |
AMQ-specific implementation of Command
which accumulates
method, header and body from a series of frames, unless these are
supplied at construction time.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Construct a command ready to fill in by reading frames
| |||||||||||
Construct a command with just a method, and without header or body.
| |||||||||||
Construct a command with a specified method, header and body.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Called to check internal code assumptions.
| |||||||||||
Public API - Retrieves the body byte array that travelled as part of this
Command, if any.
| |||||||||||
Public API - Retrieves the ContentHeader subclass instance held as part of this Command, if any.
| |||||||||||
Public API - Retrieves the
Method held within this Command. | |||||||||||
Sends this command down the named channel on the channel's
connection, possibly in multiple frames.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.rabbitmq.client.Command
|
Construct a command ready to fill in by reading frames
Construct a command with just a method, and without header or body.
method | the wrapped method |
---|
Construct a command with a specified method, header and body.
method | the wrapped method |
---|---|
contentHeader | the wrapped content header |
body | the message body data |
Called to check internal code assumptions.
Public API - Retrieves the body byte array that travelled as part of this Command, if any.
Public API - Retrieves the ContentHeader subclass instance held as part of this Command, if any. Downcast to one of the inner classes of AMQP, for instance AMQP.BasicProperties, as appropriate.
ContentHeader
, or null if none
Public API - Retrieves the Method
held within this Command. Downcast to
concrete (implementation-specific!) subclasses as necessary.
Sends this command down the named channel on the channel's connection, possibly in multiple frames.
channel | the channel on which to transmit the command |
---|
IOException | if an error is encountered |
---|