Class ReactiveMongoWebSessionConfiguration

java.lang.Object
org.springframework.session.config.annotation.web.server.SpringWebSessionConfiguration
org.springframework.session.data.mongo.config.annotation.web.reactive.ReactiveMongoWebSessionConfiguration
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 ReactiveMongoWebSessionConfiguration extends SpringWebSessionConfiguration implements org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.context.EmbeddedValueResolverAware, org.springframework.context.annotation.ImportAware
Configure a ReactiveMongoSessionRepository using a provided ReactiveMongoOperations.
  • Constructor Details

    • ReactiveMongoWebSessionConfiguration

      public ReactiveMongoWebSessionConfiguration()
  • Method Details

    • reactiveMongoSessionRepository

      @Bean public ReactiveMongoSessionRepository reactiveMongoSessionRepository(org.springframework.data.mongodb.core.ReactiveMongoOperations operations)
    • setMongoSessionConverter

      @Autowired(required=false) public void setMongoSessionConverter(AbstractMongoSessionConverter mongoSessionConverter)
    • setImportMetadata

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

      public void setBeanClassLoader(ClassLoader classLoader)
      Specified by:
      setBeanClassLoader in interface org.springframework.beans.factory.BeanClassLoaderAware
    • setEmbeddedValueResolver

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

      public Integer getMaxInactiveIntervalInSeconds()
    • setMaxInactiveIntervalInSeconds

      public void setMaxInactiveIntervalInSeconds(Integer maxInactiveIntervalInSeconds)
    • getCollectionName

      public String getCollectionName()
    • setCollectionName

      public void setCollectionName(String collectionName)
    • setSessionRepositoryCustomizers

      @Autowired(required=false) public void setSessionRepositoryCustomizers(org.springframework.beans.factory.ObjectProvider<ReactiveSessionRepositoryCustomizer<ReactiveMongoSessionRepository>> sessionRepositoryCustomizers)
    • setIndexResolver

      @Autowired(required=false) public void setIndexResolver(IndexResolver<MongoSession> indexResolver)