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 Details

    • RedisIndexedWebSessionConfiguration

      public RedisIndexedWebSessionConfiguration()
  • Method Details

    • sessionRepository

      @Bean public ReactiveRedisIndexedSessionRepository sessionRepository()
      Specified by:
      sessionRepository in class AbstractRedisWebSessionConfiguration<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 is ConfigureNotifyKeyspaceEventsReactiveAction
    • setIndexResolver

      @Autowired(required=false) public void setIndexResolver(IndexResolver<Session> indexResolver)
    • setEmbeddedValueResolver

      public void setEmbeddedValueResolver(org.springframework.util.StringValueResolver resolver)
      Specified by:
      setEmbeddedValueResolver in interface org.springframework.context.EmbeddedValueResolverAware
    • setImportMetadata

      public void setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata)
      Specified by:
      setImportMetadata in interface org.springframework.context.annotation.ImportAware