public class RedissonSessionRepository extends Object implements org.springframework.session.FindByIndexNameSessionRepository<org.redisson.spring.session.RedissonSessionRepository.RedissonSession>, PatternMessageListener<String>
Constructor and Description |
---|
RedissonSessionRepository(RedissonClient redissonClient,
org.springframework.context.ApplicationEventPublisher eventPublisher) |
Modifier and Type | Method and Description |
---|---|
org.redisson.spring.session.RedissonSessionRepository.RedissonSession |
createSession() |
void |
delete(String id) |
Map<String,org.redisson.spring.session.RedissonSessionRepository.RedissonSession> |
findByIndexNameAndIndexValue(String indexName,
String indexValue) |
org.redisson.spring.session.RedissonSessionRepository.RedissonSession |
getSession(String id) |
void |
onMessage(String pattern,
String channel,
String body)
Invokes on every message in topic
|
void |
save(org.redisson.spring.session.RedissonSessionRepository.RedissonSession session) |
void |
setDefaultMaxInactiveInterval(int defaultMaxInactiveInterval) |
void |
setKeyPrefix(String keyPrefix) |
public RedissonSessionRepository(RedissonClient redissonClient, org.springframework.context.ApplicationEventPublisher eventPublisher)
public void onMessage(String pattern, String channel, String body)
PatternMessageListener
onMessage
in interface PatternMessageListener<String>
pattern
- of channel namechannel
- of topicbody
- topic messagepublic void setDefaultMaxInactiveInterval(int defaultMaxInactiveInterval)
public org.redisson.spring.session.RedissonSessionRepository.RedissonSession createSession()
createSession
in interface org.springframework.session.SessionRepository<org.redisson.spring.session.RedissonSessionRepository.RedissonSession>
public void save(org.redisson.spring.session.RedissonSessionRepository.RedissonSession session)
save
in interface org.springframework.session.SessionRepository<org.redisson.spring.session.RedissonSessionRepository.RedissonSession>
public org.redisson.spring.session.RedissonSessionRepository.RedissonSession getSession(String id)
getSession
in interface org.springframework.session.SessionRepository<org.redisson.spring.session.RedissonSessionRepository.RedissonSession>
public void delete(String id)
delete
in interface org.springframework.session.SessionRepository<org.redisson.spring.session.RedissonSessionRepository.RedissonSession>
public void setKeyPrefix(String keyPrefix)
public Map<String,org.redisson.spring.session.RedissonSessionRepository.RedissonSession> findByIndexNameAndIndexValue(String indexName, String indexValue)
findByIndexNameAndIndexValue
in interface org.springframework.session.FindByIndexNameSessionRepository<org.redisson.spring.session.RedissonSessionRepository.RedissonSession>
Copyright © 2014–2017 The Redisson Project. All rights reserved.