public class SqlListenerNioListener extends GridNioServerListenerAdapter<byte[]>
| Modifier and Type | Field and Description |
|---|---|
static byte |
JDBC_CLIENT
The value corresponds to JDBC driver of the parser field of the handshake request.
|
static byte |
ODBC_CLIENT
The value corresponds to ODBC driver of the parser field of the handshake request.
|
| Constructor and Description |
|---|
SqlListenerNioListener(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 static final byte ODBC_CLIENT
public static final byte JDBC_CLIENT
public SqlListenerNioListener(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.1.0 Release Date : July 20 2017