Class RedisWebSessionConfiguration
java.lang.Object
org.springframework.session.data.redis.config.annotation.web.server.RedisWebSessionConfiguration
- 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)
@Import(org.springframework.session.config.annotation.web.server.SpringWebSessionConfiguration.class)
public class RedisWebSessionConfiguration
extends Object
implements org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.context.EmbeddedValueResolverAware, org.springframework.context.annotation.ImportAware
Exposes the
WebSessionManager as a bean named webSessionManager. In
order to use this a single ReactiveRedisConnectionFactory must be exposed as a
Bean.- Since:
- 2.0.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetBeanClassLoader(ClassLoader classLoader) voidsetDefaultRedisSerializer(org.springframework.data.redis.serializer.RedisSerializer<Object> defaultRedisSerializer) voidsetEmbeddedValueResolver(org.springframework.util.StringValueResolver resolver) voidsetImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata) voidsetMaxInactiveInterval(Duration maxInactiveInterval) voidsetMaxInactiveIntervalInSeconds(int maxInactiveIntervalInSeconds) Deprecated.voidsetRedisConnectionFactory(org.springframework.beans.factory.ObjectProvider<org.springframework.data.redis.connection.ReactiveRedisConnectionFactory> springSessionRedisConnectionFactory, org.springframework.beans.factory.ObjectProvider<org.springframework.data.redis.connection.ReactiveRedisConnectionFactory> redisConnectionFactory) voidsetRedisNamespace(String namespace) voidsetSaveMode(org.springframework.session.SaveMode saveMode) voidsetSessionIdGenerator(org.springframework.session.SessionIdGenerator sessionIdGenerator) voidsetSessionRepositoryCustomizer(org.springframework.beans.factory.ObjectProvider<org.springframework.session.config.ReactiveSessionRepositoryCustomizer<ReactiveRedisSessionRepository>> sessionRepositoryCustomizers)
-
Constructor Details
-
RedisWebSessionConfiguration
public RedisWebSessionConfiguration()
-
-
Method Details
-
sessionRepository
-
setMaxInactiveInterval
-
setMaxInactiveIntervalInSeconds
Deprecated. -
setRedisNamespace
-
setSaveMode
public void setSaveMode(org.springframework.session.SaveMode saveMode) -
setRedisConnectionFactory
@Autowired public void setRedisConnectionFactory(@SpringSessionRedisConnectionFactory org.springframework.beans.factory.ObjectProvider<org.springframework.data.redis.connection.ReactiveRedisConnectionFactory> springSessionRedisConnectionFactory, org.springframework.beans.factory.ObjectProvider<org.springframework.data.redis.connection.ReactiveRedisConnectionFactory> redisConnectionFactory) -
setDefaultRedisSerializer
@Autowired(required=false) @Qualifier("springSessionDefaultRedisSerializer") public void setDefaultRedisSerializer(org.springframework.data.redis.serializer.RedisSerializer<Object> defaultRedisSerializer) -
setSessionRepositoryCustomizer
@Autowired(required=false) public void setSessionRepositoryCustomizer(org.springframework.beans.factory.ObjectProvider<org.springframework.session.config.ReactiveSessionRepositoryCustomizer<ReactiveRedisSessionRepository>> sessionRepositoryCustomizers) -
setBeanClassLoader
- Specified by:
setBeanClassLoaderin interfaceorg.springframework.beans.factory.BeanClassLoaderAware
-
setEmbeddedValueResolver
public void setEmbeddedValueResolver(org.springframework.util.StringValueResolver resolver) - Specified by:
setEmbeddedValueResolverin interfaceorg.springframework.context.EmbeddedValueResolverAware
-
setImportMetadata
public void setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata) - Specified by:
setImportMetadatain interfaceorg.springframework.context.annotation.ImportAware
-
setSessionIdGenerator
@Autowired(required=false) public void setSessionIdGenerator(org.springframework.session.SessionIdGenerator sessionIdGenerator)
-