public class AMQFrame extends AMQDataBlock implements EncodableAMQDataBlock
| Modifier and Type | Field and Description |
|---|---|
static byte |
FRAME_END_BYTE |
| Constructor and Description |
|---|
AMQFrame(int channel,
AMQBody bodyFrame) |
| Modifier and Type | Method and Description |
|---|---|
AMQBody |
getBodyFrame() |
int |
getChannel() |
static int |
getFrameOverhead() |
long |
getSize()
Get the size of buffer needed to store the byte representation of this
frame.
|
String |
toString() |
static void |
writeFrame(DataOutput buffer,
int channel,
AMQBody body) |
static void |
writeFrames(DataOutput buffer,
int channel,
AMQBody body1,
AMQBody body2) |
static void |
writeFrames(DataOutput buffer,
int channel,
AMQBody body1,
AMQBody body2,
AMQBody body3) |
long |
writePayload(ByteBufferSender sender) |
void |
writePayload(DataOutput buffer)
Writes the datablock to the specified buffer.
|
public static final byte FRAME_END_BYTE
public AMQFrame(int channel,
AMQBody bodyFrame)
public long getSize()
AMQDataBlockgetSize in class AMQDataBlockpublic static final int getFrameOverhead()
public void writePayload(DataOutput buffer) throws IOException
AMQDataBlockwritePayload in class AMQDataBlockbuffer - the buffer to write toIOException - if there is a problem writing the outputpublic long writePayload(ByteBufferSender sender) throws IOException
writePayload in class AMQDataBlockIOExceptionpublic final int getChannel()
public final AMQBody getBodyFrame()
public static void writeFrame(DataOutput buffer, int channel, AMQBody body) throws IOException
IOExceptionpublic static void writeFrames(DataOutput buffer, int channel, AMQBody body1, AMQBody body2) throws IOException
IOExceptionpublic static void writeFrames(DataOutput buffer, int channel, AMQBody body1, AMQBody body2, AMQBody body3) throws IOException
IOExceptionCopyright © 2006–2017 The Apache Software Foundation. All rights reserved.