public interface ChannelProtocol
| Modifier and Type | Method and Description |
|---|---|
long |
getWriteQueueSize()
Deprecated.
|
void |
onClose(ChannelManager inManager)
Indicate that the channel used by this protocol has closed.
|
boolean |
onRecvBuffer(ChannelManager inManager,
java.nio.ByteBuffer inBuffer)
Called by a channel reader task to pass received bytes to the protocol.
|
boolean |
onSendBuffer(ChannelManager inManager,
java.nio.ByteBuffer inBuffer)
Called by a channel writer task to obtain bytes to send from the protocol.
|
boolean onRecvBuffer(ChannelManager inManager, java.nio.ByteBuffer inBuffer) throws java.io.IOException
inManager - - The manager performing the read.inBuffer - - The (partially) filled direct buffer.ConnectExceptionjava.io.IOExceptionboolean onSendBuffer(ChannelManager inManager, java.nio.ByteBuffer inBuffer) throws java.io.IOException
inManager - - The manager requesting to write.inBuffer - - A buffer to be filled by the protocol.java.io.IOException@Deprecated long getWriteQueueSize()
void onClose(ChannelManager inManager)
inManager - - The channel manager that has closed.