Class RedisIndexedWebSessionConfiguration
java.lang.Object
org.springframework.session.data.redis.config.annotation.web.server.AbstractRedisWebSessionConfiguration<ReactiveRedisIndexedSessionRepository>
org.springframework.session.data.redis.config.annotation.web.server.RedisIndexedWebSessionConfiguration
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.annotation.ImportAware
,org.springframework.context.EmbeddedValueResolverAware
@Configuration(proxyBeanMethods=false)
public class RedisIndexedWebSessionConfiguration
extends AbstractRedisWebSessionConfiguration<ReactiveRedisIndexedSessionRepository>
implements org.springframework.context.EmbeddedValueResolverAware, org.springframework.context.annotation.ImportAware
Exposes the
WebSessionManager
as a bean named webSessionManager
backed
by ReactiveRedisIndexedSessionRepository
. In order to use this a single
ReactiveRedisConnectionFactory
must be exposed as a Bean.- Since:
- 3.3
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.beans.factory.InitializingBean
void
setConfigureRedisAction
(ConfigureReactiveRedisAction configureRedisAction) Sets the action to perform for configuring Redis.void
setEmbeddedValueResolver
(org.springframework.util.StringValueResolver resolver) void
setEventPublisher
(org.springframework.context.ApplicationEventPublisher eventPublisher) void
setImportMetadata
(org.springframework.core.type.AnnotationMetadata importMetadata) void
setIndexResolver
(IndexResolver<Session> indexResolver) Methods inherited from class org.springframework.session.data.redis.config.annotation.web.server.AbstractRedisWebSessionConfiguration
createReactiveRedisTemplate, getDefaultRedisSerializer, getMaxInactiveInterval, getRedisConnectionFactory, getRedisNamespace, getSaveMode, getSessionIdGenerator, getSessionRepositoryCustomizers, setDefaultRedisSerializer, setMaxInactiveInterval, setRedisConnectionFactory, setRedisNamespace, setSaveMode, setSessionIdGenerator, setSessionRepositoryCustomizer
-
Constructor Details
-
RedisIndexedWebSessionConfiguration
public RedisIndexedWebSessionConfiguration()
-
-
Method Details
-
sessionRepository
- Specified by:
sessionRepository
in classAbstractRedisWebSessionConfiguration<ReactiveRedisIndexedSessionRepository>
-
enableRedisKeyspaceNotificationsInitializer
@Bean public org.springframework.beans.factory.InitializingBean enableRedisKeyspaceNotificationsInitializer() -
setEventPublisher
@Autowired public void setEventPublisher(org.springframework.context.ApplicationEventPublisher eventPublisher) -
setConfigureRedisAction
@Autowired(required=false) public void setConfigureRedisAction(ConfigureReactiveRedisAction configureRedisAction) Sets the action to perform for configuring Redis.- Parameters:
configureRedisAction
- the configuration to apply to Redis. The default isConfigureNotifyKeyspaceEventsReactiveAction
-
setIndexResolver
-
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
-