public class ClientConnectionContext extends ClientListenerAbstractConnectionContext
| Modifier and Type | Field and Description |
|---|---|
static ClientListenerProtocolVersion |
CURRENT_VER
Version 1.2.0.
|
static ClientListenerProtocolVersion |
VER_1_0_0
Version 1.0.0.
|
static ClientListenerProtocolVersion |
VER_1_1_0
Version 1.1.0.
|
static ClientListenerProtocolVersion |
VER_1_2_0
Version 1.2.0.
|
ctx| Constructor and Description |
|---|
ClientConnectionContext(GridKernalContext ctx,
long connId,
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) |
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.
|
authenticate, authorizationContext, connectionId, kernalContext, securityContextpublic static final ClientListenerProtocolVersion VER_1_0_0
public static final ClientListenerProtocolVersion VER_1_1_0
public static final ClientListenerProtocolVersion VER_1_2_0
public static final ClientListenerProtocolVersion CURRENT_VER
public ClientConnectionContext(GridKernalContext ctx, long connId, int maxCursors)
ctx - Kernal context.connId - Connection ID.maxCursors - Max active cursors.public ClientResourceRegistry resources()
public boolean isVersionSupported(ClientListenerProtocolVersion ver)
ver - Version to check.true if version is supported.public ClientListenerProtocolVersion currentVersion()
public void initializeFromHandshake(ClientListenerProtocolVersion ver, BinaryReaderExImpl reader) throws IgniteCheckedException
ver - Protocol version.reader - Reader set to the configuration part of the handshake message.IgniteCheckedException - On error.public ClientListenerRequestHandler handler()
public ClientListenerMessageParser parser()
public void onDisconnected()
IOException during network operations.public void incrementCursors()
public void decrementCursors()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.5 Release Date : June 4 2019