org.springframework.boot.autoconfigure.session

Enum StoreType

  • All Implemented Interfaces:
    Serializable, Comparable<StoreType>


    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 Detail

      • 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 Detail

      • values

        public static StoreType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (StoreType c : StoreType.values())
            System.out.println(c);
        
        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