Class RedisIndexedHttpSessionConfiguration
java.lang.Object
org.springframework.session.data.redis.config.annotation.web.http.AbstractRedisHttpSessionConfiguration<RedisIndexedSessionRepository>
org.springframework.session.data.redis.config.annotation.web.http.RedisIndexedHttpSessionConfiguration
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanClassLoaderAware
,org.springframework.context.annotation.ImportAware
,org.springframework.context.EmbeddedValueResolverAware
@Configuration(proxyBeanMethods=false)
public class RedisIndexedHttpSessionConfiguration
extends AbstractRedisHttpSessionConfiguration<RedisIndexedSessionRepository>
implements org.springframework.context.EmbeddedValueResolverAware, org.springframework.context.annotation.ImportAware
Exposes the
SessionRepositoryFilter
as a bean named
springSessionRepositoryFilter
backed by RedisIndexedSessionRepository
.
In order to use this a single RedisConnectionFactory
must be exposed as a Bean.- Since:
- 3.0.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.beans.factory.InitializingBean
void
setApplicationEventPublisher
(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) void
setCleanupCron
(String cleanupCron) void
setConfigureRedisAction
(ConfigureRedisAction configureRedisAction) Sets the action to perform for configuring Redis.void
setEmbeddedValueResolver
(org.springframework.util.StringValueResolver resolver) void
setImportMetadata
(org.springframework.core.type.AnnotationMetadata importMetadata) void
setIndexResolver
(org.springframework.session.IndexResolver<org.springframework.session.Session> indexResolver) void
setRedisSubscriptionExecutor
(Executor redisSubscriptionExecutor) void
setRedisTaskExecutor
(Executor redisTaskExecutor) void
setSessionIdGenerator
(org.springframework.session.SessionIdGenerator sessionIdGenerator) org.springframework.data.redis.listener.RedisMessageListenerContainer
springSessionRedisMessageListenerContainer
(RedisIndexedSessionRepository sessionRepository) Methods inherited from class org.springframework.session.data.redis.config.annotation.web.http.AbstractRedisHttpSessionConfiguration
createRedisTemplate, getDefaultRedisSerializer, getFlushMode, getMaxInactiveInterval, getRedisConnectionFactory, getRedisNamespace, getSaveMode, getSessionRepositoryCustomizers, setBeanClassLoader, setDefaultRedisSerializer, setFlushMode, setMaxInactiveInterval, setMaxInactiveIntervalInSeconds, setRedisConnectionFactory, setRedisNamespace, setSaveMode, setSessionRepositoryCustomizer
-
Constructor Details
-
RedisIndexedHttpSessionConfiguration
public RedisIndexedHttpSessionConfiguration()
-
-
Method Details
-
sessionRepository
- Specified by:
sessionRepository
in classAbstractRedisHttpSessionConfiguration<RedisIndexedSessionRepository>
-
springSessionRedisMessageListenerContainer
@Bean public org.springframework.data.redis.listener.RedisMessageListenerContainer springSessionRedisMessageListenerContainer(RedisIndexedSessionRepository sessionRepository) -
enableRedisKeyspaceNotificationsInitializer
@Bean public org.springframework.beans.factory.InitializingBean enableRedisKeyspaceNotificationsInitializer() -
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
.
-
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) -
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
-
setSessionIdGenerator
@Autowired(required=false) public void setSessionIdGenerator(org.springframework.session.SessionIdGenerator sessionIdGenerator)
-