Interface ClusterClientSession


public interface ClusterClientSession
Representation of a client session to an Aeron Cluster for use in an ConsensusModuleExtension.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Authenticated principal for a session encoded in byte form.
    long
    id()
    Cluster session identifier.
    boolean
    Determine if a cluster client session is open, so it is active for operations.
    Response Publication to be used for sending responses privately to a client.
    long
    The time last activity has been recorded for a session to determine if it is active.
    void
    timeOfLastActivityNs(long timeNs)
    The time last activity recorded for a session to determine if it is active.
  • Method Details

    • id

      long id()
      Cluster session identifier.
      Returns:
      cluster session identifier.
    • isOpen

      boolean isOpen()
      Determine if a cluster client session is open, so it is active for operations.
      Returns:
      true of the session is open otherwise false.
    • encodedPrincipal

      byte[] encodedPrincipal()
      Authenticated principal for a session encoded in byte form.
      Returns:
      authenticated principal for a session encoded in byte form.
    • responsePublication

      Publication responsePublication()
      Response Publication to be used for sending responses privately to a client.
      Returns:
      response Publication to be used for sending responses privately to a client.
    • timeOfLastActivityNs

      long timeOfLastActivityNs()
      The time last activity has been recorded for a session to determine if it is active.
      Returns:
      time last activity has been recorded for a session to determine if it is active.
    • timeOfLastActivityNs

      void timeOfLastActivityNs(long timeNs)
      The time last activity recorded for a session to determine if it is active. This should be updated on valid ingress.
      Parameters:
      timeNs - of last activity recorded for a session to determine if it is active.