@Configuration @EnableScheduling public class RedisHttpSessionConfiguration extends SpringHttpSessionConfiguration implements 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(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory) |
static org.springframework.context.support.PropertySourcesPlaceholderConfigurer |
propertySourcesPlaceholderConfigurer()
Property placeholder to process the @Scheduled annotation.
|
org.springframework.data.redis.listener.RedisMessageListenerContainer |
redisMessageListenerContainer(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory,
RedisOperationsSessionRepository messageListener) |
org.springframework.data.redis.core.RedisTemplate<Object,Object> |
sessionRedisTemplate(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory) |
RedisOperationsSessionRepository |
sessionRepository(org.springframework.data.redis.core.RedisOperations<Object,Object> sessionRedisTemplate,
org.springframework.context.ApplicationEventPublisher applicationEventPublisher) |
void |
setConfigureRedisAction(ConfigureRedisAction configureRedisAction)
Sets the action to perform for configuring Redis.
|
void |
setDefaultRedisSerializer(org.springframework.data.redis.serializer.RedisSerializer<Object> defaultRedisSerializer) |
void |
setEmbeddedValueResolver(org.springframework.util.StringValueResolver resolver) |
void |
setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata) |
void |
setMaxInactiveIntervalInSeconds(int maxInactiveIntervalInSeconds) |
void |
setRedisFlushMode(RedisFlushMode redisFlushMode) |
void |
setRedisNamespace(String namespace) |
void |
setRedisSubscriptionExecutor(Executor redisSubscriptionExecutor) |
void |
setRedisTaskExecutor(Executor redisTaskExecutor) |
init, sessionEventHttpSessionListenerAdapter, setApplicationContext, setCookieSerializer, setHttpSessionListeners, setHttpSessionStrategy, setServletContext, springSessionRepositoryFilter@Bean
public org.springframework.data.redis.listener.RedisMessageListenerContainer redisMessageListenerContainer(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory,
RedisOperationsSessionRepository messageListener)
@Bean public org.springframework.data.redis.core.RedisTemplate<Object,Object> sessionRedisTemplate(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory)
@Bean public RedisOperationsSessionRepository sessionRepository(@Qualifier(value="sessionRedisTemplate") org.springframework.data.redis.core.RedisOperations<Object,Object> sessionRedisTemplate, org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
public void setMaxInactiveIntervalInSeconds(int maxInactiveIntervalInSeconds)
public void setRedisNamespace(String namespace)
public void setRedisFlushMode(RedisFlushMode redisFlushMode)
public void setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata)
setImportMetadata in interface org.springframework.context.annotation.ImportAware@Bean public org.springframework.beans.factory.InitializingBean enableRedisKeyspaceNotificationsInitializer(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory)
@Autowired(required=false) public void setConfigureRedisAction(ConfigureRedisAction configureRedisAction)
configureRedisAction - the configureRedis to set. The default is
ConfigureNotifyKeyspaceEventsAction.@Autowired(required=false) @Qualifier(value="springSessionDefaultRedisSerializer") public void setDefaultRedisSerializer(org.springframework.data.redis.serializer.RedisSerializer<Object> defaultRedisSerializer)
@Autowired(required=false) @Qualifier(value="springSessionRedisTaskExecutor") public void setRedisTaskExecutor(Executor redisTaskExecutor)
@Autowired(required=false) @Qualifier(value="springSessionRedisSubscriptionExecutor") public void setRedisSubscriptionExecutor(Executor redisSubscriptionExecutor)
public void setEmbeddedValueResolver(org.springframework.util.StringValueResolver resolver)
setEmbeddedValueResolver in interface org.springframework.context.EmbeddedValueResolverAware@Bean public static org.springframework.context.support.PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer()
PropertySourcesPlaceholderConfigurer to use