public class GridTcpMemcachedNioListener extends GridNioServerListenerAdapter<GridMemcachedMessage>
| Constructor and Description |
|---|
GridTcpMemcachedNioListener(IgniteLogger log,
GridRestProtocolHandler hnd)
Creates listener which will convert incoming tcp packets to rest requests and forward them to
a given rest handler.
|
| 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,
GridMemcachedMessage req)
This method is called whenever a
GridNioParser returns non-null value. |
onFailure, onMessageSent, onSessionIdleTimeout, onSessionWriteTimeoutpublic GridTcpMemcachedNioListener(IgniteLogger log, GridRestProtocolHandler hnd)
log - Logger to use.hnd - Rest handler.public void onConnected(GridNioSession ses)
ses - Newly created session for remote client.public void onDisconnected(GridNioSession ses, @Nullable Exception e)
IOException during network operations.ses - Closed session.e - Exception occurred, if any.public void onMessage(GridNioSession ses, GridMemcachedMessage req)
GridNioParser returns non-null value.ses - Session on which message was received.req - Parsed message.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.5 Release Date : June 4 2019