Class SessionProperties
java.lang.Object
org.springframework.boot.autoconfigure.session.SessionProperties
Configuration properties for Spring Session.
- Since:
- 1.4.0
- Author:
- Tommy Ludwig, Stephane Nicoll, Vedran Pavic
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Servlet-related properties. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondetermineTimeout
(Supplier<Duration> fallbackTimeout) Determine the session timeout.void
setServlet
(SessionProperties.Servlet servlet) void
setTimeout
(Duration timeout)
-
Constructor Details
-
SessionProperties
public SessionProperties()
-
-
Method Details
-
getTimeout
-
setTimeout
-
getServlet
-
setServlet
-
determineTimeout
Determine the session timeout. If no timeout is configured, thefallbackTimeout
is used.- Parameters:
fallbackTimeout
- a fallback timeout value if the timeout isn't configured- Returns:
- the session timeout
- Since:
- 2.4.0
-