@ConfigurationProperties(prefix="spring.session") public class SessionProperties extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SessionProperties.Servlet
Servlet-related properties.
|
Constructor and Description |
---|
SessionProperties() |
Modifier and Type | Method and Description |
---|---|
Duration |
determineTimeout(Supplier<Duration> fallbackTimeout)
Determine the session timeout.
|
SessionProperties.Servlet |
getServlet() |
StoreType |
getStoreType() |
Duration |
getTimeout() |
void |
setServlet(SessionProperties.Servlet servlet) |
void |
setStoreType(StoreType storeType) |
void |
setTimeout(Duration timeout) |
public StoreType getStoreType()
public void setStoreType(StoreType storeType)
public Duration getTimeout()
public void setTimeout(Duration timeout)
public SessionProperties.Servlet getServlet()
public void setServlet(SessionProperties.Servlet servlet)
public Duration determineTimeout(Supplier<Duration> fallbackTimeout)
fallbackTimeout
is used.fallbackTimeout
- a fallback timeout value if the timeout isn't configured