Class SessionProperties

java.lang.Object
org.springframework.boot.autoconfigure.session.SessionProperties

@ConfigurationProperties(prefix="spring.session") public class SessionProperties extends Object
Configuration properties for Spring Session.
Since:
1.4.0
Author:
Tommy Ludwig, Stephane Nicoll, Vedran Pavic
  • Constructor Details

    • SessionProperties

      public SessionProperties()
  • Method Details

    • getStoreType

      public StoreType getStoreType()
    • setStoreType

      public void setStoreType(StoreType storeType)
    • getTimeout

      public Duration getTimeout()
    • setTimeout

      public void setTimeout(Duration timeout)
    • getServlet

      public SessionProperties.Servlet getServlet()
    • setServlet

      public void setServlet(SessionProperties.Servlet servlet)
    • determineTimeout

      public Duration determineTimeout(Supplier<Duration> fallbackTimeout)
      Determine the session timeout. If no timeout is configured, the fallbackTimeout is used.
      Parameters:
      fallbackTimeout - a fallback timeout value if the timeout isn't configured
      Returns:
      the session timeout
      Since:
      2.4.0