public class RedissonSessionRepository extends Object implements 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 |
deleteById(String id) |
org.redisson.spring.session.RedissonSessionRepository.RedissonSession |
findById(String id) |
Map<String,org.redisson.spring.session.RedissonSessionRepository.RedissonSession> |
findByIndexNameAndIndexValue(String indexName,
String indexValue) |
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)
PatternMessageListeneronMessage in interface PatternMessageListener<String>pattern - of channel namechannel - of topicbody - topic messagepublic void setDefaultMaxInactiveInterval(int defaultMaxInactiveInterval)
public org.redisson.spring.session.RedissonSessionRepository.RedissonSession createSession()
public void save(org.redisson.spring.session.RedissonSessionRepository.RedissonSession session)
public org.redisson.spring.session.RedissonSessionRepository.RedissonSession findById(String id)
public void deleteById(String id)
public void setKeyPrefix(String keyPrefix)
Copyright © 2014–2018 The Redisson Project. All rights reserved.