org.apache.qpid.transport
Class ProtocolHeader

java.lang.Object
  extended by org.apache.qpid.transport.ProtocolHeader
All Implemented Interfaces:
NetworkEvent, ProtocolEvent

public final class ProtocolHeader
extends Object
implements NetworkEvent, ProtocolEvent

ProtocolHeader


Constructor Summary
ProtocolHeader(byte protoClass, byte instance, byte major, byte minor)
           
ProtocolHeader(int instance, int major, int minor)
           
 
Method Summary
<C> void
delegate(C context, ProtocolDelegate<C> delegate)
           
 void delegate(NetworkDelegate delegate)
           
 int getChannel()
           
 byte getEncodedTrack()
           
 byte getInstance()
           
 byte getMajor()
           
 byte getMinor()
           
 void setChannel(int channel)
           
 ByteBuffer toByteBuffer()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProtocolHeader

public ProtocolHeader(byte protoClass,
                      byte instance,
                      byte major,
                      byte minor)

ProtocolHeader

public ProtocolHeader(int instance,
                      int major,
                      int minor)
Method Detail

getInstance

public byte getInstance()

getMajor

public byte getMajor()

getMinor

public byte getMinor()

getChannel

public int getChannel()
Specified by:
getChannel in interface ProtocolEvent

setChannel

public void setChannel(int channel)
Specified by:
setChannel in interface ProtocolEvent

getEncodedTrack

public byte getEncodedTrack()
Specified by:
getEncodedTrack in interface ProtocolEvent

toByteBuffer

public ByteBuffer toByteBuffer()

delegate

public <C> void delegate(C context,
                         ProtocolDelegate<C> delegate)
Specified by:
delegate in interface ProtocolEvent

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