Class ClientStateManager

java.lang.Object
com.illumon.iris.controller.service.ClientStateManager

public class ClientStateManager extends Object
  • Field Details

    • CLIENT_HEARTBEAT_EXPIRY_MILLIS

      public static final long CLIENT_HEARTBEAT_EXPIRY_MILLIS
    • CLIENT_STATE_KEY

      public static final io.deephaven.hash.KeyedObjectKey.Basic<io.deephaven.shadow.core.com.google.protobuf.ByteString,ClientStateManager.ClientState> CLIENT_STATE_KEY
  • Constructor Details

  • Method Details

    • authenticate

      public ClientStateManager.ClientState authenticate(@NotNull ClientId clientId, @NotNull AuthToken authToken)
    • getClientStateByCookie

      @NotNull public ClientStateManager.ClientState getClientStateByCookie(io.deephaven.shadow.core.com.google.protobuf.ByteString cookie)
    • shutdown

      public void shutdown() throws IOException
      Throws:
      IOException
    • forEachSubscribedClient

      public void forEachSubscribedClient(@NotNull Consumer<ClientStateManager.ClientState> action)
    • invalidateClient

      public void invalidateClient(io.deephaven.shadow.core.com.google.protobuf.ByteString cookie)
      Invalidate a client by their cookie. If the client is not found, no further action occurs. If a client is found, this will safely complete any active subscriptions, ignoring any errors.
      Parameters:
      cookie - the client cookie