类 RedissonSessionRepository

java.lang.Object
cn.taketoday.web.session.RedissonSessionRepository
所有已实现的接口:
cn.taketoday.session.SessionRepository, EventListener, org.redisson.api.listener.PatternMessageListener<String>

public class RedissonSessionRepository extends Object implements cn.taketoday.session.SessionRepository, org.redisson.api.listener.PatternMessageListener<String>
Redisson SessionRepository
从以下版本开始:
2019-09-28 10:31
作者:
Harry Yang
  • 字段详细资料

    • PRINCIPAL_NAME_INDEX_NAME

      private static final String PRINCIPAL_NAME_INDEX_NAME
      A session index that contains the current principal name (i.e. username).

      It is the responsibility of the developer to ensure the index is populated since Infra Session is not aware of the authentication mechanism being used.

    • SESSION_ATTR_PREFIX

      static final String SESSION_ATTR_PREFIX
      另请参阅:
    • SECURITY_CONTEXT

      private static final String SECURITY_CONTEXT
      另请参阅:
    • redisson

      private final org.redisson.api.RedissonClient redisson
    • deletedTopic

      private final org.redisson.api.RPatternTopic deletedTopic
    • expiredTopic

      private final org.redisson.api.RPatternTopic expiredTopic
    • createdTopic

      private final org.redisson.api.RPatternTopic createdTopic
    • keyPrefix

      private String keyPrefix
    • defaultMaxInactiveInterval

      @Nullable private Duration defaultMaxInactiveInterval
    • eventDispatcher

      private final cn.taketoday.session.SessionEventDispatcher eventDispatcher
    • idGenerator

      private final cn.taketoday.session.SessionIdGenerator idGenerator
  • 构造器详细资料

    • RedissonSessionRepository

      public RedissonSessionRepository(org.redisson.api.RedissonClient redissonClient)
    • RedissonSessionRepository

      public RedissonSessionRepository(org.redisson.api.RedissonClient redisson, @Nullable String keyPrefix, @Nullable cn.taketoday.session.SessionIdGenerator idGenerator, @Nullable cn.taketoday.session.SessionEventDispatcher eventDispatcher)
  • 方法详细资料

    • loadSession

      @Nullable private cn.taketoday.session.MapSession loadSession(String sessionId)
    • onMessage

      public void onMessage(CharSequence pattern, CharSequence channel, String body)
      指定者:
      onMessage 在接口中 org.redisson.api.listener.PatternMessageListener<String>
    • setDefaultMaxInactiveInterval

      public void setDefaultMaxInactiveInterval(@Nullable Duration defaultMaxInactiveInterval)
    • createSession

      指定者:
      createSession 在接口中 cn.taketoday.session.SessionRepository
    • createSession

      public cn.taketoday.session.WebSession createSession(String id)
      指定者:
      createSession 在接口中 cn.taketoday.session.SessionRepository
    • retrieveSession

      @Nullable public RedissonSessionRepository.RedissonSession retrieveSession(String sessionId)
      指定者:
      retrieveSession 在接口中 cn.taketoday.session.SessionRepository
    • removeSession

      @Nullable public cn.taketoday.session.WebSession removeSession(String sessionId)
      指定者:
      removeSession 在接口中 cn.taketoday.session.SessionRepository
    • updateLastAccessTime

      public void updateLastAccessTime(cn.taketoday.session.WebSession webSession)
      指定者:
      updateLastAccessTime 在接口中 cn.taketoday.session.SessionRepository
    • contains

      public boolean contains(String sessionId)
      指定者:
      contains 在接口中 cn.taketoday.session.SessionRepository
    • getSessionCount

      public int getSessionCount()
      指定者:
      getSessionCount 在接口中 cn.taketoday.session.SessionRepository
    • getIdentifiers

      public String[] getIdentifiers()
      指定者:
      getIdentifiers 在接口中 cn.taketoday.session.SessionRepository
    • setKeyPrefix

      public void setKeyPrefix(String keyPrefix)
    • resolvePrincipal

      @Nullable String resolvePrincipal(cn.taketoday.session.WebSession session)
    • getEventsChannelName

      String getEventsChannelName(String sessionId)
    • getExpiredKey

      String getExpiredKey(String sessionId)
    • getExpiredKeyPrefix

      String getExpiredKeyPrefix()
    • getEventsChannelPrefix

      String getEventsChannelPrefix()
    • getPrincipalKey

      String getPrincipalKey(String principalName)
    • getSessionAttrNameKey

      String getSessionAttrNameKey(String name)
    • getPrincipalSet

      private org.redisson.api.RSet<String> getPrincipalSet(String indexValue)