public class ClientListenerNioListener extends GridNioServerListenerAdapter<byte[]>
| Modifier and Type | Field and Description |
|---|---|
static byte |
JDBC_CLIENT
JDBC driver handshake code.
|
static byte |
ODBC_CLIENT
ODBC driver handshake code.
|
static byte |
THIN_CLIENT
Thin client handshake code.
|
| Constructor and Description |
|---|
ClientListenerNioListener(GridKernalContext ctx,
GridSpinBusyLock busyLock,
ClientConnectorConfiguration cliConnCfg)
Constructor.
|
| 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,
byte[] 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.
|
onMessageSent, onSessionWriteTimeoutpublic static final byte ODBC_CLIENT
public static final byte JDBC_CLIENT
public static final byte THIN_CLIENT
public ClientListenerNioListener(GridKernalContext ctx, GridSpinBusyLock busyLock, ClientConnectorConfiguration cliConnCfg)
ctx - Context.busyLock - Shutdown busy lock.cliConnCfg - Client connector configuration.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, byte[] msg)
GridNioParser returns non-null value.ses - Session on which message was received.msg - Parsed message.public void onSessionIdleTimeout(GridNioSession ses)
onSessionIdleTimeout in interface GridNioServerListener<byte[]>onSessionIdleTimeout in class GridNioServerListenerAdapter<byte[]>ses - Session that is idle.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.4.0 Release Date : March 5 2018