java.lang.Object | |
↳ | com.rabbitmq.client.impl.Frame |
Represents an AMQP wire-protocol frame, with frame type, channel number, and payload bytes. TODO: make state private
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
channel | Frame channel number, 0-65535 | ||||||||||
type | Frame type code |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a frame for output with a type and a channel number and a
fresh accumulator waiting for payload.
| |||||||||||
Constructs a frame for input with a type, a channel number and a
payload byte array.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Computes the AMQP wire-protocol length of an encoded field-array
| |||||||||||
Public API - retrieves a new DataInputStream streaming over the payload
| |||||||||||
Public API - retrieves a fresh DataOutputStream streaming into the accumulator
| |||||||||||
Public API - retrieves the frame payload
| |||||||||||
Private API - A protocol version mismatch is detected by checking the
three next bytes if a frame type of (int)'A' is read from an input
stream.
| |||||||||||
Protected API - Factory method to instantiate a Frame by reading an
AMQP-wire-protocol frame from the given input stream.
| |||||||||||
Computes the AMQP wire-protocol length of protocol-encoded table entries.
| |||||||||||
Public API - writes this Frame to the given DataOutputStream
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Frame channel number, 0-65535
Frame type code
Constructs a frame for output with a type and a channel number and a fresh accumulator waiting for payload.
Constructs a frame for input with a type, a channel number and a payload byte array.
Computes the AMQP wire-protocol length of an encoded field-array
UnsupportedEncodingException |
---|
IOException |
---|
Public API - retrieves a new DataInputStream streaming over the payload
Public API - retrieves a fresh DataOutputStream streaming into the accumulator
Public API - retrieves the frame payload
Private API - A protocol version mismatch is detected by checking the three next bytes if a frame type of (int)'A' is read from an input stream. If the next three bytes are 'M', 'Q' and 'P', then it's likely the broker is trying to tell us we are speaking the wrong AMQP protocol version.
MalformedFrameException | if an AMQP protocol version mismatch is detected |
---|---|
MalformedFrameException | if a corrupt AMQP protocol identifier is read |
IOException |
Protected API - Factory method to instantiate a Frame by reading an AMQP-wire-protocol frame from the given input stream.
IOException |
---|
Computes the AMQP wire-protocol length of protocol-encoded table entries.
UnsupportedEncodingException |
---|
Public API - writes this Frame to the given DataOutputStream
IOException |
---|