Class ClientContext

java.lang.Object
org.apache.ignite.client.handler.ClientContext

public class ClientContext extends Object
Client connection context.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets the client code.
    boolean
    hasAllFeatures(org.apache.ignite.internal.client.proto.ProtocolBitmaskFeature... features)
    Сhecks if all features are enabled.
    boolean
    hasFeature(org.apache.ignite.internal.client.proto.ProtocolBitmaskFeature feature)
    Checks if a feature is enabled.
    boolean
    Returns whether this connection was opened by a compute executor (handshake provided a valid COMPUTE_EXECUTOR_ID).
     
     
    org.apache.ignite.internal.security.authentication.UserDetails
     
    org.apache.ignite.internal.client.proto.ProtocolVersion
    Gets the protocol version.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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:
      True if 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:
      True if all features are enabled.
    • userDetails

      public org.apache.ignite.internal.security.authentication.UserDetails userDetails()
    • remoteAddress

      public SocketAddress remoteAddress()
    • isComputeConnection

      public boolean isComputeConnection()
      Returns whether this connection was opened by a compute executor (handshake provided a valid COMPUTE_EXECUTOR_ID).
      Returns:
      true for compute executor connections, false for regular client connections.
    • toString

      public String toString()
      Overrides:
      toString in class Object