java.lang.Object
java.lang.Enum<StoreType>
org.springframework.boot.autoconfigure.session.StoreType
All Implemented Interfaces:
Serializable, Comparable<StoreType>, Constable

public enum StoreType extends Enum<StoreType>
Supported Spring Session data store types.
Since:
1.4.0
Author:
Tommy Ludwig, EddĂș MelĂ©ndez, Vedran Pavic
  • Enum Constant Details

    • REDIS

      public static final StoreType REDIS
      Redis backed sessions.
    • MONGODB

      public static final StoreType MONGODB
      MongoDB backed sessions.
    • JDBC

      public static final StoreType JDBC
      JDBC backed sessions.
    • HAZELCAST

      public static final StoreType HAZELCAST
      Hazelcast backed sessions.
    • NONE

      public static final StoreType NONE
      No session data-store.
  • Method Details

    • values

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

      public static StoreType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null