Interface ClientListenerConnectionContext
-
- All Known Implementing Classes:
ClientConnectionContext,ClientListenerAbstractConnectionContext,JdbcConnectionContext,OdbcConnectionContext
public interface ClientListenerConnectionContextSQL listener connection context.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,String>attributes()Connection attributes.byteclientType()longconnectionId()ClientListenerProtocolVersiondefaultVersion()ClientListenerRequestHandlerhandler()Handler getter.voidinitializeFromHandshake(GridNioSession ses, ClientListenerProtocolVersion ver, BinaryReaderExImpl reader)Initialize from handshake message.booleanisVersionSupported(ClientListenerProtocolVersion ver)voidonDisconnected()Called whenever client is disconnected due to correct connection close or due toIOExceptionduring network operations.ClientListenerMessageParserparser()Parser getter@Nullable SecurityContextsecurityContext()
-
-
-
Method Detail
-
clientType
byte clientType()
- Returns:
- Client type.
-
connectionId
long connectionId()
- Returns:
- Current connection id.
-
isVersionSupported
boolean isVersionSupported(ClientListenerProtocolVersion ver)
- Parameters:
ver- Version to check.- Returns:
trueif version is supported.
-
defaultVersion
ClientListenerProtocolVersion defaultVersion()
- Returns:
- Current context version.
-
initializeFromHandshake
void initializeFromHandshake(GridNioSession ses, ClientListenerProtocolVersion ver, BinaryReaderExImpl reader) throws IgniteCheckedException
Initialize from handshake message.- Parameters:
ses- NIO session.ver- Protocol version.reader- Reader set to the configuration part of the handshake message.- Throws:
IgniteCheckedException- On error.
-
handler
ClientListenerRequestHandler handler()
Handler getter.- Returns:
- Request handler for the connection.
-
parser
ClientListenerMessageParser parser()
Parser getter- Returns:
- Message parser for the connection.
-
onDisconnected
void onDisconnected()
Called whenever client is disconnected due to correct connection close or due toIOExceptionduring network operations.
-
securityContext
@Nullable @Nullable SecurityContext securityContext()
- Returns:
- Security context.
-
-