Class RedissonHttpSessionConfiguration
- java.lang.Object
-
- org.springframework.session.config.annotation.web.http.SpringHttpSessionConfiguration
-
- org.redisson.spring.session.config.RedissonHttpSessionConfiguration
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.annotation.ImportAware
,org.springframework.context.ApplicationContextAware
@Configuration public class RedissonHttpSessionConfiguration extends org.springframework.session.config.annotation.web.http.SpringHttpSessionConfiguration implements org.springframework.context.annotation.ImportAware
Exposes the SessionRepositoryFilter as the bean named "springSessionRepositoryFilter".Redisson instance should be registered as bean in application context.
- Author:
- Nikita Koksharov
-
-
Constructor Summary
Constructors Constructor Description RedissonHttpSessionConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RedissonSessionRepository
sessionRepository(RedissonClient redissonClient, org.springframework.context.ApplicationEventPublisher eventPublisher)
void
setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata)
void
setKeyPrefix(String keyPrefix)
void
setMaxInactiveIntervalInSeconds(Integer maxInactiveIntervalInSeconds)
-
Methods inherited from class org.springframework.session.config.annotation.web.http.SpringHttpSessionConfiguration
init, sessionEventHttpSessionListenerAdapter, setApplicationContext, setCookieSerializer, setHttpSessionListeners, setHttpSessionStrategy, setServletContext, springSessionRepositoryFilter
-
-
-
-
Method Detail
-
sessionRepository
@Bean public RedissonSessionRepository sessionRepository(RedissonClient redissonClient, org.springframework.context.ApplicationEventPublisher eventPublisher)
-
setMaxInactiveIntervalInSeconds
public void setMaxInactiveIntervalInSeconds(Integer maxInactiveIntervalInSeconds)
-
setKeyPrefix
public void setKeyPrefix(String keyPrefix)
-
setImportMetadata
public void setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata)
- Specified by:
setImportMetadata
in interfaceorg.springframework.context.annotation.ImportAware
-
-