Class AbstractRedisHttpSessionConfiguration<T extends org.springframework.session.SessionRepository<? extends org.springframework.session.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(org.springframework.session.config.annotation.web.http.SpringHttpSessionConfiguration.class)
public abstract class AbstractRedisHttpSessionConfiguration<T extends org.springframework.session.SessionRepository<? extends org.springframework.session.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 org.springframework.session.FlushModeprotected Durationprotected org.springframework.data.redis.connection.RedisConnectionFactoryprotected Stringprotected org.springframework.session.SaveModeabstract TvoidsetBeanClassLoader(ClassLoader classLoader) voidsetDefaultRedisSerializer(org.springframework.data.redis.serializer.RedisSerializer<Object> defaultRedisSerializer) voidsetFlushMode(org.springframework.session.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(org.springframework.session.SaveMode saveMode) voidsetSessionRepositoryCustomizer(org.springframework.beans.factory.ObjectProvider<org.springframework.session.config.SessionRepositoryCustomizer<T>> sessionRepositoryCustomizers)
-
Constructor Details
-
AbstractRedisHttpSessionConfiguration
public AbstractRedisHttpSessionConfiguration()
-
-
Method Details
-
sessionRepository
-
setMaxInactiveInterval
-
setMaxInactiveIntervalInSeconds
Deprecated. -
getMaxInactiveInterval
-
setRedisNamespace
-
getRedisNamespace
-
setFlushMode
public void setFlushMode(org.springframework.session.FlushMode flushMode) -
getFlushMode
protected org.springframework.session.FlushMode getFlushMode() -
setSaveMode
public void setSaveMode(org.springframework.session.SaveMode saveMode) -
getSaveMode
protected org.springframework.session.SaveMode 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<org.springframework.session.config.SessionRepositoryCustomizer<T>> sessionRepositoryCustomizers) -
getSessionRepositoryCustomizers
-
setBeanClassLoader
- Specified by:
setBeanClassLoaderin interfaceorg.springframework.beans.factory.BeanClassLoaderAware
-
createRedisTemplate
-