org.apache.qpid.framing
Class AMQFrame

java.lang.Object
  extended by org.apache.qpid.framing.AMQDataBlock
      extended by org.apache.qpid.framing.AMQFrame
All Implemented Interfaces:
EncodableAMQDataBlock

public class AMQFrame
extends AMQDataBlock
implements EncodableAMQDataBlock


Field Summary
static byte FRAME_END_BYTE
           
 
Constructor Summary
AMQFrame(org.apache.mina.common.ByteBuffer in, int channel, long bodySize, BodyFactory bodyFactory)
           
AMQFrame(int channel, AMQBody bodyFrame)
           
 
Method Summary
 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(org.apache.mina.common.ByteBuffer buffer, int channel, AMQBody body)
           
static void writeFrames(org.apache.mina.common.ByteBuffer buffer, int channel, AMQBody body1, AMQBody body2)
           
static void writeFrames(org.apache.mina.common.ByteBuffer buffer, int channel, AMQBody body1, AMQBody body2, AMQBody body3)
           
 void writePayload(org.apache.mina.common.ByteBuffer buffer)
          Writes the datablock to the specified buffer.
 
Methods inherited from class org.apache.qpid.framing.AMQDataBlock
toByteBuffer, toNioByteBuffer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FRAME_END_BYTE

public static final byte FRAME_END_BYTE
See Also:
Constant Field Values
Constructor Detail

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
Method Detail

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