Package org.redisson.spring.session
Class RedissonSessionRepository
- java.lang.Object
-
- org.redisson.spring.session.RedissonSessionRepository
-
- All Implemented Interfaces:
EventListener,PatternMessageListener<String>,org.springframework.session.FindByIndexNameSessionRepository<org.redisson.spring.session.RedissonSessionRepository.RedissonSession>,org.springframework.session.SessionRepository<org.redisson.spring.session.RedissonSessionRepository.RedissonSession>
@Deprecated public class RedissonSessionRepository extends Object implements org.springframework.session.FindByIndexNameSessionRepository<org.redisson.spring.session.RedissonSessionRepository.RedissonSession>, PatternMessageListener<String>
Deprecated.Deprecated. Use spring-session implementation based on Redisson Redis Data module- Author:
- Nikita Koksharov
-
-
Constructor Summary
Constructors Constructor Description RedissonSessionRepository(RedissonClient redissonClient, org.springframework.context.ApplicationEventPublisher eventPublisher)Deprecated.RedissonSessionRepository(RedissonClient redissonClient, org.springframework.context.ApplicationEventPublisher eventPublisher, String keyPrefix)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.redisson.spring.session.RedissonSessionRepository.RedissonSessioncreateSession()Deprecated.voiddeleteById(String id)Deprecated.org.redisson.spring.session.RedissonSessionRepository.RedissonSessionfindById(String id)Deprecated.Map<String,org.redisson.spring.session.RedissonSessionRepository.RedissonSession>findByIndexNameAndIndexValue(String indexName, String indexValue)Deprecated.voidonMessage(CharSequence pattern, CharSequence channel, String body)Deprecated.Invokes on every message in topicvoidsave(org.redisson.spring.session.RedissonSessionRepository.RedissonSession session)Deprecated.voidsetDefaultMaxInactiveInterval(int defaultMaxInactiveInterval)Deprecated.voidsetKeyPrefix(String keyPrefix)Deprecated.
-
-
-
Constructor Detail
-
RedissonSessionRepository
public RedissonSessionRepository(RedissonClient redissonClient, org.springframework.context.ApplicationEventPublisher eventPublisher, String keyPrefix)
Deprecated.
-
RedissonSessionRepository
public RedissonSessionRepository(RedissonClient redissonClient, org.springframework.context.ApplicationEventPublisher eventPublisher)
Deprecated.
-
-
Method Detail
-
onMessage
public void onMessage(CharSequence pattern, CharSequence channel, String body)
Deprecated.Description copied from interface:PatternMessageListenerInvokes on every message in topic- Specified by:
onMessagein interfacePatternMessageListener<String>- Parameters:
pattern- of channel namechannel- of topicbody- topic message
-
setDefaultMaxInactiveInterval
public void setDefaultMaxInactiveInterval(int defaultMaxInactiveInterval)
Deprecated.
-
createSession
public org.redisson.spring.session.RedissonSessionRepository.RedissonSession createSession()
Deprecated.- Specified by:
createSessionin interfaceorg.springframework.session.SessionRepository<org.redisson.spring.session.RedissonSessionRepository.RedissonSession>
-
save
public void save(org.redisson.spring.session.RedissonSessionRepository.RedissonSession session)
Deprecated.- Specified by:
savein interfaceorg.springframework.session.SessionRepository<org.redisson.spring.session.RedissonSessionRepository.RedissonSession>
-
findById
public org.redisson.spring.session.RedissonSessionRepository.RedissonSession findById(String id)
Deprecated.- Specified by:
findByIdin interfaceorg.springframework.session.SessionRepository<org.redisson.spring.session.RedissonSessionRepository.RedissonSession>
-
deleteById
public void deleteById(String id)
Deprecated.- Specified by:
deleteByIdin interfaceorg.springframework.session.SessionRepository<org.redisson.spring.session.RedissonSessionRepository.RedissonSession>
-
setKeyPrefix
public void setKeyPrefix(String keyPrefix)
Deprecated.
-
findByIndexNameAndIndexValue
public Map<String,org.redisson.spring.session.RedissonSessionRepository.RedissonSession> findByIndexNameAndIndexValue(String indexName, String indexValue)
Deprecated.- Specified by:
findByIndexNameAndIndexValuein interfaceorg.springframework.session.FindByIndexNameSessionRepository<org.redisson.spring.session.RedissonSessionRepository.RedissonSession>
-
-