class FrameWriter
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.nio.ByteBuffer |
_bbuf |
private WritableBuffer |
_buffer |
private EncoderImpl |
_encoder |
private long |
_framesOutput |
private int |
_frameStart |
private byte |
_frameType |
private int |
_maxFrameSize |
private int |
_payloadStart |
private int |
_performativeSize |
private Ref<ProtocolTracer> |
_protocolTracer |
private TransportImpl |
_transport |
(package private) static byte |
AMQP_FRAME_TYPE |
(package private) static byte |
SASL_FRAME_TYPE |
| Constructor and Description |
|---|
FrameWriter(EncoderImpl encoder,
int maxFrameSize,
byte frameType,
Ref<ProtocolTracer> protocolTracer,
TransportImpl transport) |
| Modifier and Type | Method and Description |
|---|---|
private void |
endFrame(int channel) |
(package private) long |
getFramesOutput() |
private void |
grow() |
(package private) boolean |
isFull() |
(package private) int |
readBytes(java.nio.ByteBuffer dst) |
(package private) void |
setMaxFrameSize(int maxFrameSize) |
private void |
startFrame() |
(package private) void |
writeFrame(int channel,
java.lang.Object frameBody,
java.nio.ByteBuffer payload,
java.lang.Runnable onPayloadTooLarge) |
(package private) void |
writeFrame(java.lang.Object frameBody) |
(package private) void |
writeHeader(byte[] header) |
private void |
writePerformative(java.lang.Object frameBody) |
static final byte AMQP_FRAME_TYPE
static final byte SASL_FRAME_TYPE
private EncoderImpl _encoder
private java.nio.ByteBuffer _bbuf
private WritableBuffer _buffer
private int _maxFrameSize
private byte _frameType
private final Ref<ProtocolTracer> _protocolTracer
private TransportImpl _transport
private int _frameStart
private int _payloadStart
private int _performativeSize
private long _framesOutput
FrameWriter(EncoderImpl encoder, int maxFrameSize, byte frameType, Ref<ProtocolTracer> protocolTracer, TransportImpl transport)
void setMaxFrameSize(int maxFrameSize)
private void grow()
void writeHeader(byte[] header)
private void startFrame()
private void writePerformative(java.lang.Object frameBody)
private void endFrame(int channel)
void writeFrame(int channel,
java.lang.Object frameBody,
java.nio.ByteBuffer payload,
java.lang.Runnable onPayloadTooLarge)
void writeFrame(java.lang.Object frameBody)
boolean isFull()
int readBytes(java.nio.ByteBuffer dst)
long getFramesOutput()