TagValMenuCommandProtocolpublic interface MenuCommandProtocol
| Modifier and Type | Method | Description |
|---|---|---|
MenuCommand |
fromChannel(ByteBuffer buffer) |
Retrieves a message from the channel, or throws an exception if the message is not fully formed.
|
byte |
getKeyIdentifier() |
returns the identifier for this protocol, when used in messages
|
void |
toChannel(ByteBuffer buffer,
MenuCommand cmd) |
Puts the command specified into the byte buffer, it is assumed that the callee will flip the
channel once complete.
|
MenuCommand fromChannel(ByteBuffer buffer) throws IOException
IOExceptionvoid toChannel(ByteBuffer buffer, MenuCommand cmd)
buffer - to write the data tocmd - the command to writebyte getKeyIdentifier()
Copyright © 2018. All rights reserved.