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) |
ByteBuffer |
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 ProtocolEventpublic void setChannel(int channel)
setChannel in interface ProtocolEventpublic byte getEncodedTrack()
getEncodedTrack in interface ProtocolEventpublic boolean isConnectionControl()
isConnectionControl in interface ProtocolEventpublic ByteBuffer toByteBuffer()
public <C> void delegate(C context,
ProtocolDelegate<C> delegate)
delegate in interface ProtocolEventpublic void delegate(NetworkDelegate delegate)
delegate in interface NetworkEventCopyright © 2006–2019 The Apache Software Foundation. All rights reserved.