public interface ChannelHandler
Modifier and Type | Method and Description |
---|---|
void |
onClose(java.nio.channels.SocketChannel channel)
Closing of a socket
|
void |
onConnect(java.nio.channels.SocketChannel channel)
The connect event
|
void |
onError(java.nio.channels.SocketChannel channel,
StatusCode status)
In case of an error this is called
|
void |
onReceiveComplete(java.nio.channels.SocketChannel channel,
TCPMessage readRequest)
A message hae been received fully
|
void |
onSendComplete(java.nio.channels.SocketChannel channel,
TCPMessage writeRequest)
A send is completely written to the channel
|
void onError(java.nio.channels.SocketChannel channel, StatusCode status)
status
- of the errorchannel
- the channelvoid onConnect(java.nio.channels.SocketChannel channel)
channel
- the channelvoid onClose(java.nio.channels.SocketChannel channel)
channel
- the tcp channelvoid onReceiveComplete(java.nio.channels.SocketChannel channel, TCPMessage readRequest)
channel
- the channelreadRequest
- the message details along with the buffers readvoid onSendComplete(java.nio.channels.SocketChannel channel, TCPMessage writeRequest)
channel
- the channelwriteRequest
- the send request