public class JdbcConnectionContext extends Object implements ClientListenerConnectionContext
| Modifier and Type | Field and Description |
|---|---|
static ClientListenerProtocolVersion |
VER_2_3_0
Version 2.3.1: added "multiple statements query" feature.
|
static ClientListenerProtocolVersion |
VER_2_4_0
Version 2.4.0: adds default values for columns feature.
|
| Constructor and Description |
|---|
JdbcConnectionContext(GridKernalContext ctx,
GridSpinBusyLock busyLock,
int maxCursors)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ClientListenerProtocolVersion |
currentVersion() |
ClientListenerRequestHandler |
handler()
Handler getter.
|
void |
initializeFromHandshake(ClientListenerProtocolVersion ver,
BinaryReaderExImpl reader)
Initialize from handshake message.
|
boolean |
isVersionSupported(ClientListenerProtocolVersion ver) |
void |
onDisconnected()
Called whenever client is disconnected due to correct connection close
or due to
IOException during network operations. |
ClientListenerMessageParser |
parser()
Parser getter
|
public static final ClientListenerProtocolVersion VER_2_3_0
public static final ClientListenerProtocolVersion VER_2_4_0
public JdbcConnectionContext(GridKernalContext ctx, GridSpinBusyLock busyLock, int maxCursors)
ctx - Kernal Context.busyLock - Shutdown busy lock.maxCursors - Maximum allowed cursors.public boolean isVersionSupported(ClientListenerProtocolVersion ver)
isVersionSupported in interface ClientListenerConnectionContextver - Version to check.true if version is supported.public ClientListenerProtocolVersion currentVersion()
currentVersion in interface ClientListenerConnectionContextpublic void initializeFromHandshake(ClientListenerProtocolVersion ver, BinaryReaderExImpl reader)
initializeFromHandshake in interface ClientListenerConnectionContextver - Protocol version.reader - Reader set to the configuration part of the handshake message.public ClientListenerRequestHandler handler()
handler in interface ClientListenerConnectionContextpublic ClientListenerMessageParser parser()
parser in interface ClientListenerConnectionContextpublic void onDisconnected()
IOException during network operations.onDisconnected in interface ClientListenerConnectionContext
Follow @ApacheIgnite
Ignite Fabric : ver. 2.4.0 Release Date : March 5 2018