public final class ProtocolHeader extends Object implements NetworkEvent, ProtocolEvent
Constructor and Description |
---|
ProtocolHeader(byte protoClass,
byte instance,
byte major,
byte minor) |
ProtocolHeader(int instance,
int major,
int minor) |
Modifier and Type | Method and Description |
---|---|
<C> void |
delegate(C context,
ProtocolDelegate<C> delegate) |
void |
delegate(NetworkDelegate delegate) |
int |
getChannel() |
byte |
getEncodedTrack() |
byte |
getInstance() |
byte |
getMajor() |
byte |
getMinor() |
boolean |
isConnectionControl() |
void |
setChannel(int channel) |
QpidByteBuffer |
toByteBuffer() |
String |
toString() |
public ProtocolHeader(byte protoClass, byte instance, byte major, byte minor)
public ProtocolHeader(int instance, int major, int minor)
public byte getInstance()
public byte getMajor()
public byte getMinor()
public int getChannel()
getChannel
in interface ProtocolEvent
public void setChannel(int channel)
setChannel
in interface ProtocolEvent
public byte getEncodedTrack()
getEncodedTrack
in interface ProtocolEvent
public boolean isConnectionControl()
isConnectionControl
in interface ProtocolEvent
public QpidByteBuffer toByteBuffer()
public <C> void delegate(C context, ProtocolDelegate<C> delegate)
delegate
in interface ProtocolEvent
public void delegate(NetworkDelegate delegate)
delegate
in interface NetworkEvent
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.