Enum Class TomcatSessionMode

java.lang.Object
java.lang.Enum<TomcatSessionMode>
swiss.trustbroker.config.dto.TomcatSessionMode
All Implemented Interfaces:
Serializable, Comparable<TomcatSessionMode>, Constable

public enum TomcatSessionMode extends Enum<TomcatSessionMode>
Mode for Tomcat session.
  • Enum Constant Details

    • IN_MEMORY

      public static final TomcatSessionMode IN_MEMORY
      Single pod or sticky routing, tomcat session reaper collects inactive sessions too.
    • IN_DB

      public static final TomcatSessionMode IN_DB
      Expensive to load session from DB for every getSession call.
    • MIXED

      public static final TomcatSessionMode MIXED
      IN_MEMORY with IN_DB backing on failover.
  • Method Details

    • values

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