org.apache.qpid.framing
Class AMQFrame
java.lang.Object
org.apache.qpid.framing.AMQDataBlock
org.apache.qpid.framing.AMQFrame
- All Implemented Interfaces:
- EncodableAMQDataBlock
public class AMQFrame
- extends AMQDataBlock
- implements EncodableAMQDataBlock
FRAME_END_BYTE
public static final byte FRAME_END_BYTE
- See Also:
- Constant Field Values
AMQFrame
public AMQFrame(int channel,
AMQBody bodyFrame)
AMQFrame
public AMQFrame(org.apache.mina.common.ByteBuffer in,
int channel,
long bodySize,
BodyFactory bodyFactory)
throws AMQFrameDecodingException
- Throws:
AMQFrameDecodingException
getSize
public long getSize()
- Description copied from class:
AMQDataBlock
- Get the size of buffer needed to store the byte representation of this
frame.
- Specified by:
getSize
in class AMQDataBlock
- Returns:
- unsigned integer
getFrameOverhead
public static final int getFrameOverhead()
writePayload
public void writePayload(org.apache.mina.common.ByteBuffer buffer)
- Description copied from class:
AMQDataBlock
- Writes the datablock to the specified buffer.
- Specified by:
writePayload
in class AMQDataBlock
getChannel
public final int getChannel()
getBodyFrame
public final AMQBody getBodyFrame()
toString
public String toString()
- Overrides:
toString
in class Object
writeFrame
public static void writeFrame(org.apache.mina.common.ByteBuffer buffer,
int channel,
AMQBody body)
writeFrames
public static void writeFrames(org.apache.mina.common.ByteBuffer buffer,
int channel,
AMQBody body1,
AMQBody body2)
writeFrames
public static void writeFrames(org.apache.mina.common.ByteBuffer buffer,
int channel,
AMQBody body1,
AMQBody body2,
AMQBody body3)
Licensed to the Apache Software Foundation