public class ClientConnectionContext extends Object implements ClientListenerConnectionContext
| Modifier and Type | Field and Description |
|---|---|
static ClientListenerProtocolVersion |
VER_1_0_0
Version 1.0.0.
|
static ClientListenerProtocolVersion |
VER_1_1_0
Version 1.1.0.
|
| Constructor and Description |
|---|
ClientConnectionContext(GridKernalContext ctx,
int maxCursors)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
ClientListenerProtocolVersion |
currentVersion() |
void |
decrementCursors()
Increments the cursor count.
|
ClientListenerRequestHandler |
handler()
Handler getter.
|
void |
incrementCursors()
Increments the cursor count.
|
void |
initializeFromHandshake(ClientListenerProtocolVersion ver,
BinaryReaderExImpl reader)
Initialize from handshake message.
|
boolean |
isVersionSupported(ClientListenerProtocolVersion ver) |
GridKernalContext |
kernalContext()
Gets the kernal context.
|
void |
onDisconnected()
Called whenever client is disconnected due to correct connection close
or due to
IOException during network operations. |
ClientListenerMessageParser |
parser()
Parser getter
|
ClientResourceRegistry |
resources()
Gets the handle registry.
|
SecurityContext |
securityContext() |
public static final ClientListenerProtocolVersion VER_1_0_0
public static final ClientListenerProtocolVersion VER_1_1_0
public ClientConnectionContext(GridKernalContext ctx, int maxCursors)
ctx - Kernal context.maxCursors - Max active cursors.public ClientResourceRegistry resources()
public GridKernalContext kernalContext()
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) throws IgniteCheckedException
initializeFromHandshake in interface ClientListenerConnectionContextver - Protocol version.reader - Reader set to the configuration part of the handshake message.IgniteCheckedException - On error.public ClientListenerRequestHandler handler()
handler in interface ClientListenerConnectionContextpublic ClientListenerMessageParser parser()
parser in interface ClientListenerConnectionContextpublic void onDisconnected()
IOException during network operations.onDisconnected in interface ClientListenerConnectionContextpublic void incrementCursors()
public void decrementCursors()
public SecurityContext securityContext()
null if security is disabled.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.6.0 Release Date : July 10 2018