public class OdbcNioListener extends GridNioServerListenerAdapter<byte[]>
| Constructor and Description |
|---|
OdbcNioListener(GridKernalContext ctx,
GridSpinBusyLock busyLock,
int maxCursors)
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. |
onSessionIdleTimeout, onSessionWriteTimeoutpublic OdbcNioListener(GridKernalContext ctx, GridSpinBusyLock busyLock, int maxCursors)
ctx - Context.busyLock - Shutdown busy lock.maxCursors - Maximum allowed cursors.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.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017