类 LocalUserOnlineProvider

java.lang.Object
com.walker.cache.AbstractCacheProvider<com.walker.web.UserPrincipal<?>>
com.iplatform.base.cache.LocalUserOnlineProvider
所有已实现的接口:
com.walker.cache.CacheProvider<com.walker.web.UserPrincipal<?>>, com.walker.web.UserOnlineProvider, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<com.walker.cache.CacheProvider<com.walker.web.UserPrincipal<?>>>, org.springframework.beans.factory.InitializingBean

public class LocalUserOnlineProvider extends com.walker.cache.AbstractCacheProvider<com.walker.web.UserPrincipal<?>> implements com.walker.web.UserOnlineProvider
基于内存实现的在线用户提供者实现。
作者:
时克英
  • 字段概要

    从类继承的字段 com.walker.cache.AbstractCacheProvider

    count, logger, userCache

    从接口继承的字段 org.springframework.beans.factory.FactoryBean

    OBJECT_TYPE_ATTRIBUTE
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    boolean
    cacheUserPrincipal(String token, com.walker.web.UserPrincipal<?> userPrincipal)
     
     
     
    com.walker.web.UserPrincipal<?>
     
    protected int
    loadDataToCache(com.walker.cache.Cache cache)
     
    void
    putCacheData(String key, com.walker.web.UserPrincipal<?> userPrincipal, long expiredSeconds)
     
    boolean
     
    boolean
     

    从类继承的方法 com.walker.cache.AbstractCacheProvider

    afterPropertiesSet, destroy, getCache, getCacheCount, getCacheData, getCacheList, getCacheParam, getCreateTime, getObject, getObjectType, isLoadPage, isSingleton, isUseRedis, loadPageDataToCache, provideCacheInstance, putCacheData, putCacheList, putCacheList, putCacheListAppend, queryListLimit, reload, removeCacheData, removeCacheList, removeCacheList, setCacheParam, setLoadPage, setPageSize, setUseRedis, size, toString, updateCacheData

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 构造器详细资料

    • LocalUserOnlineProvider

      public LocalUserOnlineProvider()
  • 方法详细资料

    • loadDataToCache

      protected int loadDataToCache(com.walker.cache.Cache cache)
      指定者:
      loadDataToCache 在类中 com.walker.cache.AbstractCacheProvider<com.walker.web.UserPrincipal<?>>
    • getProviderName

      public String getProviderName()
      指定者:
      getProviderName 在接口中 com.walker.cache.CacheProvider<com.walker.web.UserPrincipal<?>>
    • getProviderType

      public Class<?> getProviderType()
      指定者:
      getProviderType 在接口中 com.walker.cache.CacheProvider<com.walker.web.UserPrincipal<?>>
    • getUserPrincipal

      public com.walker.web.UserPrincipal<?> getUserPrincipal(String token)
      指定者:
      getUserPrincipal 在接口中 com.walker.web.UserOnlineProvider
    • cacheUserPrincipal

      public boolean cacheUserPrincipal(String token, com.walker.web.UserPrincipal<?> userPrincipal)
      指定者:
      cacheUserPrincipal 在接口中 com.walker.web.UserOnlineProvider
    • updateUserPrincipalTimeStamp

      public boolean updateUserPrincipalTimeStamp(String token)
      指定者:
      updateUserPrincipalTimeStamp 在接口中 com.walker.web.UserOnlineProvider
    • removeUserPrincipal

      public boolean removeUserPrincipal(String token)
      指定者:
      removeUserPrincipal 在接口中 com.walker.web.UserOnlineProvider
    • putCacheData

      public void putCacheData(String key, com.walker.web.UserPrincipal<?> userPrincipal, long expiredSeconds)
      指定者:
      putCacheData 在接口中 com.walker.cache.CacheProvider<com.walker.web.UserPrincipal<?>>
      覆盖:
      putCacheData 在类中 com.walker.cache.AbstractCacheProvider<com.walker.web.UserPrincipal<?>>