public interface GridNioServerListener<T>
GridNioServer that will be notified on client events.| Modifier and Type | Method and Description |
|---|---|
void |
onConnected(GridNioSession ses)
This method is called whenever a new client is connected and session is created.
|
void |
onDisconnected(GridNioSession ses,
Exception e)
This method is called whenever client is disconnected due to correct connection close
or due to
IOException during network operations. |
void |
onMessage(GridNioSession ses,
T msg)
This method is called whenever a
GridNioParser returns non-null value. |
void |
onSessionIdleTimeout(GridNioSession ses)
Called when session did not receive any activity within timeout interval.
|
void |
onSessionWriteTimeout(GridNioSession ses)
Called when session has non-empty write queue and server did not send any data
within timeout interval.
|
void onConnected(GridNioSession ses)
ses - Newly created session for remote client.void onDisconnected(GridNioSession ses, @Nullable Exception e)
IOException during network operations.ses - Closed session.e - Exception occurred, if any.void onMessage(GridNioSession ses, T msg)
GridNioParser returns non-null value.ses - Session on which message was received.msg - Parsed message.void onSessionWriteTimeout(GridNioSession ses)
ses - Session that has timed out writes.void onSessionIdleTimeout(GridNioSession ses)
ses - Session that is idle.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.1.0 Release Date : July 20 2017