2. Shiro的SessionManager
2020-08-17 10:43:53   0  举报             
     
         
 shiro的SessionManager
    作者其他创作
 大纲/内容
 AbstractSessionDAO
  void validateSessions();
    setCacheManager
  叠加了对Session对象所有属性的get和set操作.
  DefaultSessionManager
  增加了超时的概念.
  定义了最根本的功能: start和getSession.
  Session getSession(SessionKey key);
  CacheManagerAware
  doCreateSession();
  createActiveSessionsCache();
  CacheManager cacheManager;
  sessionIdGenerator;
  AbstractValidatingSessionManager
  abstract Session createSession(SessionContext context)
  增加了validate的概念
  SessionFactory sessionFactory;
  ValidatingSessionManager
  Serializable create(Session session)
  Session start(SessionContext context);
  SessionValidationScheduler sessionValidationScheduler;
  提供了第一层基础框架实现; 可变的部分留给了抽象方法(doXXX)
  SessionDAO sessionDAO;
  ExecutorServiceSessionValidationScheduler
  AbstractNativeSessionManager
  AbstractSessionManager
  Collection<SessionListener> listeners;
  EnterpriseCacheSessionDAO
  Serializable doCreate(Session session)
  Shiro的SessionManager类层次及SessionDAO等
  setGlobalSessionTimeout(t);
  //other session operation;
  createSession();
  NativeSessionManager
  void publishEvent(Object event);
  SessionManager
  CachingSessionDAO
  SessionDAO
  abstract Session doGetSession(SessionKey key);
  getGlobalSessionTimeout();
  touch(SessionKey key);
  EventBus eventBus;
   
 
 
 
 
  0 条评论
 下一页
  
  ![Mpush系列[3]之限流过程分析1](https://www.processon.com/chart_image/template/thumb/5d3e5963e4b0fe2602d4caf8.png?tid=5d39b2bfe4b0d11c8911075a) 
   
   
   
  
  
  
  
  
  
  
  
 