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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionreactiveMongoSessionRepository
(org.springframework.data.mongodb.core.ReactiveMongoOperations operations) void
setBeanClassLoader
(ClassLoader classLoader) void
setCollectionName
(String collectionName) void
setEmbeddedValueResolver
(org.springframework.util.StringValueResolver embeddedValueResolver) void
setImportMetadata
(org.springframework.core.type.AnnotationMetadata importMetadata) void
setIndexResolver
(IndexResolver<MongoSession> indexResolver) void
setMaxInactiveIntervalInSeconds
(Integer maxInactiveIntervalInSeconds) void
setMongoSessionConverter
(AbstractMongoSessionConverter mongoSessionConverter) void
setSessionRepositoryCustomizers
(org.springframework.beans.factory.ObjectProvider<ReactiveSessionRepositoryCustomizer<ReactiveMongoSessionRepository>> sessionRepositoryCustomizers) Methods inherited from class org.springframework.session.config.annotation.web.server.SpringWebSessionConfiguration
setWebSessionIdResolver, webSessionManager
-
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 interfaceorg.springframework.context.annotation.ImportAware
-
setBeanClassLoader
- Specified by:
setBeanClassLoader
in interfaceorg.springframework.beans.factory.BeanClassLoaderAware
-
setEmbeddedValueResolver
public void setEmbeddedValueResolver(org.springframework.util.StringValueResolver embeddedValueResolver) - Specified by:
setEmbeddedValueResolver
in interfaceorg.springframework.context.EmbeddedValueResolverAware
-
getMaxInactiveIntervalInSeconds
-
setMaxInactiveIntervalInSeconds
-
getCollectionName
-
setCollectionName
-
setSessionRepositoryCustomizers
@Autowired(required=false) public void setSessionRepositoryCustomizers(org.springframework.beans.factory.ObjectProvider<ReactiveSessionRepositoryCustomizer<ReactiveMongoSessionRepository>> sessionRepositoryCustomizers) -
setIndexResolver
-