Class AbstractRedisHttpSessionConfiguration<T extends SessionRepository<? extends Session>>
java.lang.Object
org.springframework.session.data.redis.config.annotation.web.http.AbstractRedisHttpSessionConfiguration<T>
- Type Parameters:
T- theSessionRepositorytype
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanClassLoaderAware
- Direct Known Subclasses:
RedisHttpSessionConfiguration,RedisIndexedHttpSessionConfiguration
@Configuration(proxyBeanMethods=false)
@Import(SpringHttpSessionConfiguration.class)
public abstract class AbstractRedisHttpSessionConfiguration<T extends SessionRepository<? extends Session>>
extends Object
implements org.springframework.beans.factory.BeanClassLoaderAware
Base configuration class for Redis based
SessionRepository implementations.- Since:
- 3.0.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.data.redis.serializer.RedisSerializer<Object>protected FlushModeprotected Durationprotected org.springframework.data.redis.connection.RedisConnectionFactoryprotected Stringprotected SaveModeprotected List<SessionRepositoryCustomizer<T>>abstract TvoidsetBeanClassLoader(ClassLoader classLoader) voidsetDefaultRedisSerializer(org.springframework.data.redis.serializer.RedisSerializer<Object> defaultRedisSerializer) voidsetFlushMode(FlushMode flushMode) voidsetMaxInactiveInterval(Duration maxInactiveInterval) voidsetMaxInactiveIntervalInSeconds(int maxInactiveIntervalInSeconds) Deprecated.voidsetRedisConnectionFactory(org.springframework.beans.factory.ObjectProvider<org.springframework.data.redis.connection.RedisConnectionFactory> springSessionRedisConnectionFactory, org.springframework.beans.factory.ObjectProvider<org.springframework.data.redis.connection.RedisConnectionFactory> redisConnectionFactory) voidsetRedisNamespace(String namespace) voidsetSaveMode(SaveMode saveMode) voidsetSessionRepositoryCustomizer(org.springframework.beans.factory.ObjectProvider<SessionRepositoryCustomizer<T>> sessionRepositoryCustomizers)
-
Constructor Details
-
AbstractRedisHttpSessionConfiguration
public AbstractRedisHttpSessionConfiguration()
-
-
Method Details
-
sessionRepository
-
setMaxInactiveInterval
-
setMaxInactiveIntervalInSeconds
Deprecated. -
getMaxInactiveInterval
-
setRedisNamespace
-
getRedisNamespace
-
setFlushMode
-
getFlushMode
-
setSaveMode
-
getSaveMode
-
setRedisConnectionFactory
@Autowired public void setRedisConnectionFactory(@SpringSessionRedisConnectionFactory org.springframework.beans.factory.ObjectProvider<org.springframework.data.redis.connection.RedisConnectionFactory> springSessionRedisConnectionFactory, org.springframework.beans.factory.ObjectProvider<org.springframework.data.redis.connection.RedisConnectionFactory> redisConnectionFactory) -
getRedisConnectionFactory
protected org.springframework.data.redis.connection.RedisConnectionFactory getRedisConnectionFactory() -
setDefaultRedisSerializer
@Autowired(required=false) @Qualifier("springSessionDefaultRedisSerializer") public void setDefaultRedisSerializer(org.springframework.data.redis.serializer.RedisSerializer<Object> defaultRedisSerializer) -
getDefaultRedisSerializer
protected org.springframework.data.redis.serializer.RedisSerializer<Object> getDefaultRedisSerializer() -
setSessionRepositoryCustomizer
@Autowired(required=false) public void setSessionRepositoryCustomizer(org.springframework.beans.factory.ObjectProvider<SessionRepositoryCustomizer<T>> sessionRepositoryCustomizers) -
getSessionRepositoryCustomizers
-
setBeanClassLoader
- Specified by:
setBeanClassLoaderin interfaceorg.springframework.beans.factory.BeanClassLoaderAware
-
createRedisTemplate
-