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
Redisson instance should be registered as bean in application context.
Constructor | Description |
---|---|
RedissonHttpSessionConfiguration() |
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
init, sessionEventHttpSessionListenerAdapter, setApplicationContext, setCookieSerializer, setHttpSessionListeners, setHttpSessionStrategy, setServletContext, springSessionRepositoryFilter
@Bean public RedissonSessionRepository sessionRepository(RedissonClient redissonClient, org.springframework.context.ApplicationEventPublisher eventPublisher)
public void setMaxInactiveIntervalInSeconds(Integer maxInactiveIntervalInSeconds)
public void setKeyPrefix(String keyPrefix)
public void setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata)
setImportMetadata
in interface org.springframework.context.annotation.ImportAware
Copyright © 2014–2018 The Redisson Project. All rights reserved.