@Configuration @EnableScheduling public class RedisHttpSessionConfiguration extends Object implements org.springframework.context.annotation.ImportAware, org.springframework.beans.factory.BeanClassLoaderAware
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) |
org.springframework.data.redis.listener.RedisMessageListenerContainer |
redisMessageListenerContainer(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory) |
SessionMessageListener |
redisSessionMessageListener() |
org.springframework.data.redis.core.RedisTemplate<String,ExpiringSession> |
sessionRedisTemplate(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory) |
RedisOperationsSessionRepository |
sessionRepository(org.springframework.data.redis.core.RedisTemplate<String,ExpiringSession> sessionRedisTemplate) |
void |
setBeanClassLoader(ClassLoader classLoader) |
void |
setConfigureRedisAction(ConfigureRedisAction configureRedisAction)
Sets the action to perform for configuring Redis.
|
void |
setHttpSessionStrategy(HttpSessionStrategy httpSessionStrategy) |
void |
setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata) |
void |
setMaxInactiveIntervalInSeconds(int maxInactiveIntervalInSeconds) |
<S extends ExpiringSession> |
springSessionRepositoryFilter(SessionRepository<S> sessionRepository,
ServletContext servletContext) |
@Bean public org.springframework.data.redis.listener.RedisMessageListenerContainer redisMessageListenerContainer(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory)
@Bean public SessionMessageListener redisSessionMessageListener()
@Bean public org.springframework.data.redis.core.RedisTemplate<String,ExpiringSession> sessionRedisTemplate(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory)
@Bean public RedisOperationsSessionRepository sessionRepository(org.springframework.data.redis.core.RedisTemplate<String,ExpiringSession> sessionRedisTemplate)
@Bean public <S extends ExpiringSession> SessionRepositoryFilter<? extends ExpiringSession> springSessionRepositoryFilter(SessionRepository<S> sessionRepository, ServletContext servletContext)
public void setMaxInactiveIntervalInSeconds(int maxInactiveIntervalInSeconds)
public void setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata)
setImportMetadata in interface org.springframework.context.annotation.ImportAware@Autowired(required=false) public void setHttpSessionStrategy(HttpSessionStrategy httpSessionStrategy)
@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.public void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader in interface org.springframework.beans.factory.BeanClassLoaderAware