| org.xsocket.connection.spi.IIoHandlerCallback
IIoHandlerCallback | public interface IIoHandlerCallback (Code) | | Call back interface to notify io events of the
IIoHandler . The IIoHandler
is responsible to notify the events in the occured order.
author: grro@xsocket.org |
onConnect | public void onConnect()(Code) | | notifies that the underlying connection has been established.
|
onConnectionAbnormalTerminated | public void onConnectionAbnormalTerminated()(Code) | | notifies that the connection has to be closed (connection is corrupt,
selector has be closed, ...). This call back method will NOT be called in the case of
idle or connection time out.
|
onConnectionTimeout | public void onConnectionTimeout()(Code) | | notifies the connection time out has been occurred.
|
onData | public void onData(ByteBuffer[] data)(Code) | | notifies that data has been read from the socket.
Parameters: data - the received data |
onDisconnect | public void onDisconnect()(Code) | | notifies that the underlying connection has been disconnected (closed).
|
onIdleTimeout | public void onIdleTimeout()(Code) | | notifies the idle time out has been occurred.
|
onWriteException | public void onWriteException(IOException ioException, ByteBuffer data)(Code) | | notifies that an error has been occurred by writing data on the socket.
Parameters: ioe - ioException an io exception Parameters: data - the data, which has been tried to write |
onWritten | public void onWritten(ByteBuffer data)(Code) | | notifies that data has been written on the socket.
Parameters: data - the written data |
|
|