Class AbstractRedisHttpSessionConfiguration<T extends SessionRepository<? extends Session>>
java.lang.Object
org.springframework.session.data.redis.config.annotation.web.http.AbstractRedisHttpSessionConfiguration<T>
- Type Parameters:
T
- theSessionRepository
type
- 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.data.redis.serializer.RedisSerializer<Object>
protected FlushMode
protected Duration
protected org.springframework.data.redis.connection.RedisConnectionFactory
protected String
protected SaveMode
protected List<SessionRepositoryCustomizer<T>>
abstract T
void
setBeanClassLoader
(ClassLoader classLoader) void
setDefaultRedisSerializer
(org.springframework.data.redis.serializer.RedisSerializer<Object> defaultRedisSerializer) void
setFlushMode
(FlushMode flushMode) void
setMaxInactiveInterval
(Duration maxInactiveInterval) void
setMaxInactiveIntervalInSeconds
(int maxInactiveIntervalInSeconds) Deprecated.void
setRedisConnectionFactory
(org.springframework.beans.factory.ObjectProvider<org.springframework.data.redis.connection.RedisConnectionFactory> springSessionRedisConnectionFactory, org.springframework.beans.factory.ObjectProvider<org.springframework.data.redis.connection.RedisConnectionFactory> redisConnectionFactory) void
setRedisNamespace
(String namespace) void
setSaveMode
(SaveMode saveMode) void
setSessionRepositoryCustomizer
(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:
setBeanClassLoader
in interfaceorg.springframework.beans.factory.BeanClassLoaderAware
-
createRedisTemplate
-