@Configuration(proxyBeanMethods=false) public class RedisHttpSessionConfiguration extends SpringHttpSessionConfiguration implements org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.context.EmbeddedValueResolverAware, org.springframework.context.annotation.ImportAware
SessionRepositoryFilter
as a bean named
springSessionRepositoryFilter
. In order to use this a single
RedisConnectionFactory
must be exposed as a Bean.EnableRedisHttpSession
Constructor and Description |
---|
RedisHttpSessionConfiguration() |
Modifier and Type | Method and Description |
---|---|
org.springframework.beans.factory.InitializingBean |
enableRedisKeyspaceNotificationsInitializer() |
RedisIndexedSessionRepository |
sessionRepository() |
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) |
void |
setBeanClassLoader(java.lang.ClassLoader classLoader) |
void |
setCleanupCron(java.lang.String cleanupCron) |
void |
setConfigureRedisAction(ConfigureRedisAction configureRedisAction)
Sets the action to perform for configuring Redis.
|
void |
setDefaultRedisSerializer(org.springframework.data.redis.serializer.RedisSerializer<java.lang.Object> defaultRedisSerializer) |
void |
setEmbeddedValueResolver(org.springframework.util.StringValueResolver resolver) |
void |
setFlushMode(FlushMode flushMode) |
void |
setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata) |
void |
setIndexResolver(IndexResolver<Session> indexResolver) |
void |
setMaxInactiveIntervalInSeconds(int maxInactiveIntervalInSeconds) |
void |
setRedisConnectionFactory(org.springframework.beans.factory.ObjectProvider<org.springframework.data.redis.connection.RedisConnectionFactory> springSessionRedisConnectionFactory,
org.springframework.beans.factory.ObjectProvider<org.springframework.data.redis.connection.RedisConnectionFactory> redisConnectionFactory) |
void |
setRedisFlushMode(RedisFlushMode redisFlushMode)
Deprecated.
|
void |
setRedisNamespace(java.lang.String namespace) |
void |
setRedisSubscriptionExecutor(java.util.concurrent.Executor redisSubscriptionExecutor) |
void |
setRedisTaskExecutor(java.util.concurrent.Executor redisTaskExecutor) |
void |
setSaveMode(SaveMode saveMode) |
void |
setSessionRepositoryCustomizer(org.springframework.beans.factory.ObjectProvider<SessionRepositoryCustomizer<RedisIndexedSessionRepository>> sessionRepositoryCustomizers) |
org.springframework.data.redis.listener.RedisMessageListenerContainer |
springSessionRedisMessageListenerContainer(RedisIndexedSessionRepository sessionRepository) |
init, sessionEventHttpSessionListenerAdapter, setApplicationContext, setCookieSerializer, setHttpSessionIdResolver, setHttpSessionListeners, setServletContext, springSessionRepositoryFilter
@Bean public RedisIndexedSessionRepository sessionRepository()
@Bean public org.springframework.data.redis.listener.RedisMessageListenerContainer springSessionRedisMessageListenerContainer(RedisIndexedSessionRepository sessionRepository)
@Bean public org.springframework.beans.factory.InitializingBean enableRedisKeyspaceNotificationsInitializer()
public void setMaxInactiveIntervalInSeconds(int maxInactiveIntervalInSeconds)
public void setRedisNamespace(java.lang.String namespace)
@Deprecated public void setRedisFlushMode(RedisFlushMode redisFlushMode)
public void setFlushMode(FlushMode flushMode)
public void setSaveMode(SaveMode saveMode)
public void setCleanupCron(java.lang.String cleanupCron)
@Autowired(required=false) public void setConfigureRedisAction(ConfigureRedisAction configureRedisAction)
configureRedisAction
- the configureRedis to set. The default is
ConfigureNotifyKeyspaceEventsAction
.@Autowired public void setRedisConnectionFactory(@SpringSessionRedisConnectionFactory org.springframework.beans.factory.ObjectProvider<org.springframework.data.redis.connection.RedisConnectionFactory> springSessionRedisConnectionFactory, org.springframework.beans.factory.ObjectProvider<org.springframework.data.redis.connection.RedisConnectionFactory> redisConnectionFactory)
@Autowired(required=false) @Qualifier(value="springSessionDefaultRedisSerializer") public void setDefaultRedisSerializer(org.springframework.data.redis.serializer.RedisSerializer<java.lang.Object> defaultRedisSerializer)
@Autowired public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
@Autowired(required=false) public void setIndexResolver(IndexResolver<Session> indexResolver)
@Autowired(required=false) @Qualifier(value="springSessionRedisTaskExecutor") public void setRedisTaskExecutor(java.util.concurrent.Executor redisTaskExecutor)
@Autowired(required=false) @Qualifier(value="springSessionRedisSubscriptionExecutor") public void setRedisSubscriptionExecutor(java.util.concurrent.Executor redisSubscriptionExecutor)
@Autowired(required=false) public void setSessionRepositoryCustomizer(org.springframework.beans.factory.ObjectProvider<SessionRepositoryCustomizer<RedisIndexedSessionRepository>> 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