Class RedisHttpSessionConfiguration
java.lang.Object
org.springframework.session.config.annotation.web.http.SpringHttpSessionConfiguration
org.springframework.session.data.redis.config.annotation.web.http.RedisHttpSessionConfiguration
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanClassLoaderAware
,org.springframework.context.annotation.ImportAware
,org.springframework.context.ApplicationContextAware
,org.springframework.context.EmbeddedValueResolverAware
@Configuration(proxyBeanMethods=false)
public class RedisHttpSessionConfiguration
extends org.springframework.session.config.annotation.web.http.SpringHttpSessionConfiguration
implements org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.context.EmbeddedValueResolverAware, org.springframework.context.annotation.ImportAware
Exposes the
SessionRepositoryFilter
as a bean named
springSessionRepositoryFilter
. In order to use this a single
RedisConnectionFactory
must be exposed as a Bean.- Since:
- 1.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.beans.factory.InitializingBean
void
setApplicationEventPublisher
(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) void
setBeanClassLoader
(ClassLoader classLoader) void
setCleanupCron
(String cleanupCron) void
setConfigureRedisAction
(ConfigureRedisAction configureRedisAction) Sets the action to perform for configuring Redis.void
setDefaultRedisSerializer
(org.springframework.data.redis.serializer.RedisSerializer<Object> defaultRedisSerializer) void
setEmbeddedValueResolver
(org.springframework.util.StringValueResolver resolver) void
setFlushMode
(org.springframework.session.FlushMode flushMode) void
setImportMetadata
(org.springframework.core.type.AnnotationMetadata importMetadata) void
setIndexResolver
(org.springframework.session.IndexResolver<org.springframework.session.Session> indexResolver) void
setMaxInactiveIntervalInSeconds
(int maxInactiveIntervalInSeconds) 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
setRedisFlushMode
(RedisFlushMode redisFlushMode) Deprecated.void
setRedisNamespace
(String namespace) void
setRedisSubscriptionExecutor
(Executor redisSubscriptionExecutor) void
setRedisTaskExecutor
(Executor redisTaskExecutor) void
setSaveMode
(org.springframework.session.SaveMode saveMode) void
setSessionRepositoryCustomizer
(org.springframework.beans.factory.ObjectProvider<org.springframework.session.config.SessionRepositoryCustomizer<RedisIndexedSessionRepository>> sessionRepositoryCustomizers) org.springframework.data.redis.listener.RedisMessageListenerContainer
springSessionRedisMessageListenerContainer
(RedisIndexedSessionRepository sessionRepository) Methods inherited from class org.springframework.session.config.annotation.web.http.SpringHttpSessionConfiguration
init, sessionEventHttpSessionListenerAdapter, setApplicationContext, setCookieSerializer, setHttpSessionIdResolver, setHttpSessionListeners, setServletContext, springSessionRepositoryFilter
-
Constructor Details
-
RedisHttpSessionConfiguration
public RedisHttpSessionConfiguration()
-
-
Method Details
-
sessionRepository
-
springSessionRedisMessageListenerContainer
@Bean public org.springframework.data.redis.listener.RedisMessageListenerContainer springSessionRedisMessageListenerContainer(RedisIndexedSessionRepository sessionRepository) -
enableRedisKeyspaceNotificationsInitializer
@Bean public org.springframework.beans.factory.InitializingBean enableRedisKeyspaceNotificationsInitializer() -
setMaxInactiveIntervalInSeconds
public void setMaxInactiveIntervalInSeconds(int maxInactiveIntervalInSeconds) -
setRedisNamespace
-
setRedisFlushMode
Deprecated. -
setFlushMode
public void setFlushMode(org.springframework.session.FlushMode flushMode) -
setSaveMode
public void setSaveMode(org.springframework.session.SaveMode saveMode) -
setCleanupCron
-
setConfigureRedisAction
@Autowired(required=false) public void setConfigureRedisAction(ConfigureRedisAction configureRedisAction) Sets the action to perform for configuring Redis.- Parameters:
configureRedisAction
- the configureRedis to set. The default isConfigureNotifyKeyspaceEventsAction
.
-
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) -
setDefaultRedisSerializer
@Autowired(required=false) @Qualifier("springSessionDefaultRedisSerializer") public void setDefaultRedisSerializer(org.springframework.data.redis.serializer.RedisSerializer<Object> defaultRedisSerializer) -
setApplicationEventPublisher
@Autowired public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) -
setIndexResolver
@Autowired(required=false) public void setIndexResolver(org.springframework.session.IndexResolver<org.springframework.session.Session> indexResolver) -
setRedisTaskExecutor
@Autowired(required=false) @Qualifier("springSessionRedisTaskExecutor") public void setRedisTaskExecutor(Executor redisTaskExecutor) -
setRedisSubscriptionExecutor
@Autowired(required=false) @Qualifier("springSessionRedisSubscriptionExecutor") public void setRedisSubscriptionExecutor(Executor redisSubscriptionExecutor) -
setSessionRepositoryCustomizer
@Autowired(required=false) public void setSessionRepositoryCustomizer(org.springframework.beans.factory.ObjectProvider<org.springframework.session.config.SessionRepositoryCustomizer<RedisIndexedSessionRepository>> sessionRepositoryCustomizers) -
setBeanClassLoader
- Specified by:
setBeanClassLoader
in interfaceorg.springframework.beans.factory.BeanClassLoaderAware
-
setEmbeddedValueResolver
public void setEmbeddedValueResolver(org.springframework.util.StringValueResolver resolver) - Specified by:
setEmbeddedValueResolver
in interfaceorg.springframework.context.EmbeddedValueResolverAware
-
setImportMetadata
public void setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata) - Specified by:
setImportMetadata
in interfaceorg.springframework.context.annotation.ImportAware
-