public class ClientConnectionContext extends Object implements ClientListenerConnectionContext
| 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.
|
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)
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 ClientListenerConnectionContextpublic void incrementCursors()
public void decrementCursors()
Follow @ApacheIgnite
Ignite Fabric : ver. 2.4.0 Release Date : March 5 2018