org.apache.qpid.transport.network
Class Frame

java.lang.Object
  extended by org.apache.qpid.transport.network.Frame
All Implemented Interfaces:
NetworkEvent

public final class Frame
extends Object
implements NetworkEvent

Frame


Field Summary
static byte FIRST_FRAME
           
static byte FIRST_SEG
           
static int HEADER_SIZE
           
static byte L1
           
static byte L2
           
static byte L3
           
static byte L4
           
static byte LAST_FRAME
           
static byte LAST_SEG
           
static byte RESERVED
           
static byte VERSION
           
 
Constructor Summary
Frame(byte flags, SegmentType type, byte track, int channel, ByteBuffer body)
           
 
Method Summary
 void delegate(NetworkDelegate delegate)
           
 ByteBuffer getBody()
           
 int getChannel()
           
 byte getFlags()
           
 int getSize()
           
 byte getTrack()
           
 SegmentType getType()
           
 boolean isFirstFrame()
           
 boolean isFirstSegment()
           
 boolean isLastFrame()
           
 boolean isLastSegment()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

HEADER_SIZE

public static final int HEADER_SIZE
See Also:
Constant Field Values

L1

public static final byte L1
See Also:
Constant Field Values

L2

public static final byte L2
See Also:
Constant Field Values

L3

public static final byte L3
See Also:
Constant Field Values

L4

public static final byte L4
See Also:
Constant Field Values

RESERVED

public static final byte RESERVED
See Also:
Constant Field Values

VERSION

public static final byte VERSION
See Also:
Constant Field Values

FIRST_SEG

public static final byte FIRST_SEG
See Also:
Constant Field Values

LAST_SEG

public static final byte LAST_SEG
See Also:
Constant Field Values

FIRST_FRAME

public static final byte FIRST_FRAME
See Also:
Constant Field Values

LAST_FRAME

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

Frame

public Frame(byte flags,
             SegmentType type,
             byte track,
             int channel,
             ByteBuffer body)
Method Detail

getBody

public ByteBuffer getBody()

getFlags

public byte getFlags()

getChannel

public int getChannel()

getSize

public int getSize()

getType

public SegmentType getType()

getTrack

public byte getTrack()

isFirstSegment

public boolean isFirstSegment()

isLastSegment

public boolean isLastSegment()

isFirstFrame

public boolean isFirstFrame()

isLastFrame

public boolean isLastFrame()

delegate

public void delegate(NetworkDelegate delegate)
Specified by:
delegate in interface NetworkEvent

toString

public String toString()
Overrides:
toString in class Object


Licensed to the Apache Software Foundation