Package org.apache.ignite.client.handler
Class ClientContext
java.lang.Object
org.apache.ignite.client.handler.ClientContext
Client connection context.
-
Method Summary
Modifier and TypeMethodDescriptionintGets the client code.booleanhasAllFeatures(org.apache.ignite.internal.client.proto.ProtocolBitmaskFeature... features) Сhecks if all features are enabled.booleanhasFeature(org.apache.ignite.internal.client.proto.ProtocolBitmaskFeature feature) Checks if a feature is enabled.toString()org.apache.ignite.internal.security.authentication.UserDetailsorg.apache.ignite.internal.client.proto.ProtocolVersionversion()Gets the protocol version.
-
Method Details
-
version
public org.apache.ignite.internal.client.proto.ProtocolVersion version()Gets the protocol version.- Returns:
- Protocol version.
-
clientCode
public int clientCode()Gets the client code.- Returns:
- Client code.
-
hasFeature
public boolean hasFeature(org.apache.ignite.internal.client.proto.ProtocolBitmaskFeature feature) Checks if a feature is enabled.- Returns:
Trueif a feature is enabled.
-
hasAllFeatures
public boolean hasAllFeatures(org.apache.ignite.internal.client.proto.ProtocolBitmaskFeature... features) Сhecks if all features are enabled.- Parameters:
features- Features.- Returns:
Trueif all features are enabled.
-
userDetails
public org.apache.ignite.internal.security.authentication.UserDetails userDetails() -
remoteAddress
-
toString
-