@Configuration(proxyBeanMethods=false) public class RedisWebSessionConfiguration extends SpringWebSessionConfiguration implements org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.context.EmbeddedValueResolverAware, org.springframework.context.annotation.ImportAware
WebSessionManager
as a bean named webSessionManager
. In
order to use this a single ReactiveRedisConnectionFactory
must be exposed as a
Bean.EnableRedisWebSession
Constructor and Description |
---|
RedisWebSessionConfiguration() |
Modifier and Type | Method and Description |
---|---|
ReactiveRedisSessionRepository |
sessionRepository() |
void |
setBeanClassLoader(java.lang.ClassLoader classLoader) |
void |
setDefaultRedisSerializer(org.springframework.data.redis.serializer.RedisSerializer<java.lang.Object> defaultRedisSerializer) |
void |
setEmbeddedValueResolver(org.springframework.util.StringValueResolver resolver) |
void |
setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata) |
void |
setMaxInactiveIntervalInSeconds(int maxInactiveIntervalInSeconds) |
void |
setRedisConnectionFactory(org.springframework.beans.factory.ObjectProvider<org.springframework.data.redis.connection.ReactiveRedisConnectionFactory> springSessionRedisConnectionFactory,
org.springframework.beans.factory.ObjectProvider<org.springframework.data.redis.connection.ReactiveRedisConnectionFactory> redisConnectionFactory) |
void |
setRedisFlushMode(RedisFlushMode redisFlushMode)
Deprecated.
|
void |
setRedisNamespace(java.lang.String namespace) |
void |
setSaveMode(SaveMode saveMode) |
void |
setSessionRepositoryCustomizer(org.springframework.beans.factory.ObjectProvider<ReactiveSessionRepositoryCustomizer<ReactiveRedisSessionRepository>> sessionRepositoryCustomizers) |
webSessionManager
@Bean public ReactiveRedisSessionRepository sessionRepository()
public void setMaxInactiveIntervalInSeconds(int maxInactiveIntervalInSeconds)
public void setRedisNamespace(java.lang.String namespace)
@Deprecated public void setRedisFlushMode(RedisFlushMode redisFlushMode)
public void setSaveMode(SaveMode saveMode)
@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)
@Autowired(required=false) @Qualifier(value="springSessionDefaultRedisSerializer") public void setDefaultRedisSerializer(org.springframework.data.redis.serializer.RedisSerializer<java.lang.Object> defaultRedisSerializer)
@Autowired(required=false) public void setSessionRepositoryCustomizer(org.springframework.beans.factory.ObjectProvider<ReactiveSessionRepositoryCustomizer<ReactiveRedisSessionRepository>> sessionRepositoryCustomizers)
public void setBeanClassLoader(java.lang.ClassLoader classLoader)
setBeanClassLoader
in interface org.springframework.beans.factory.BeanClassLoaderAware
public void setEmbeddedValueResolver(org.springframework.util.StringValueResolver resolver)
setEmbeddedValueResolver
in interface org.springframework.context.EmbeddedValueResolverAware
public void setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata)
setImportMetadata
in interface org.springframework.context.annotation.ImportAware