org.apache.qpid.transport
Class ProtocolHeader
java.lang.Object
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)
|
ProtocolHeader
public ProtocolHeader(byte protoClass,
byte instance,
byte major,
byte minor)
ProtocolHeader
public ProtocolHeader(int instance,
int major,
int minor)
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