Enum Class SessionState

java.lang.Object
java.lang.Enum<SessionState>
dev.tachyonmcp.core.runtime.SessionState
All Implemented Interfaces:
Serializable, Comparable<SessionState>, Constable

public enum SessionState extends Enum<SessionState>
Lifecycle states for a session.
  • Enum Constant Details

    • INITIALIZING

      public static final SessionState INITIALIZING
      Session created, not yet initialized.
    • ACTIVE

      public static final SessionState ACTIVE
      Session ready for normal operation.
    • DRAINING

      public static final SessionState DRAINING
      Session is draining — no new requests but in-flight ones complete.
    • CLOSED

      public static final SessionState CLOSED
      Session terminated and resources released.
  • Method Details

    • values

      public static SessionState[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SessionState valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null