Enum Class ConsolidationTrigger

java.lang.Object
java.lang.Enum<ConsolidationTrigger>
com.tnsai.session.consolidation.ConsolidationTrigger
All Implemented Interfaces:
Serializable, Comparable<ConsolidationTrigger>, Constable

public enum ConsolidationTrigger extends Enum<ConsolidationTrigger>
When to trigger memory consolidation.
  • Enum Constant Details

    • ON_SESSION_END

      public static final ConsolidationTrigger ON_SESSION_END
      Consolidate when a session ends.
    • TOKEN_LIMIT

      public static final ConsolidationTrigger TOKEN_LIMIT
      Consolidate when token count exceeds threshold.
    • TIME_INTERVAL

      public static final ConsolidationTrigger TIME_INTERVAL
      Consolidate at regular time intervals.
    • MESSAGE_COUNT

      public static final ConsolidationTrigger MESSAGE_COUNT
      Consolidate when message count exceeds threshold.
  • Method Details

    • values

      public static ConsolidationTrigger[] 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 ConsolidationTrigger 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