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
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSessionProperties.Hazelcaststatic classSessionProperties.Jdbcstatic classSessionProperties.Mongostatic classSessionProperties.Redis
Constructor Summary
Constructors Constructor Description SessionProperties(org.springframework.beans.factory.ObjectProvider<ServerProperties> serverProperties)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SessionProperties.HazelcastgetHazelcast()SessionProperties.JdbcgetJdbc()SessionProperties.MongogetMongo()SessionProperties.RedisgetRedis()StoreTypegetStoreType()IntegergetTimeout()Return the session timeout in seconds.voidsetStoreType(StoreType storeType)
Constructor Detail
SessionProperties
public SessionProperties(org.springframework.beans.factory.ObjectProvider<ServerProperties> serverProperties)
Method Detail
getStoreType
public StoreType getStoreType()
setStoreType
public void setStoreType(StoreType storeType)
getTimeout
public Integer getTimeout()
Return the session timeout in seconds.- Returns:
- the session timeout in seconds
- See Also:
ServerProperties.getSession()
getHazelcast
public SessionProperties.Hazelcast getHazelcast()
getJdbc
public SessionProperties.Jdbc getJdbc()
getMongo
public SessionProperties.Mongo getMongo()
getRedis
public SessionProperties.Redis getRedis()