public class MemoryLoginUserExecutor extends java.lang.Object implements LoginUserExecutor
构造器和说明 |
---|
MemoryLoginUserExecutor() |
限定符和类型 | 方法和说明 |
---|---|
void |
buildCache()
初始化用户白名单缓存
|
void |
cache(LoginUser loginUser)
缓存白名单用户对象
|
void |
clearCache()
清理所有的缓存信息
|
boolean |
containCache(java.lang.String username)
白名单缓存中是否包含指定用户
|
java.util.List<LoginUser> |
getAllLoginUserList()
获取所有白名单用户
|
java.util.List<LoginUser> |
getAllLoginUserListSorted()
获取所有白名单用户
|
java.lang.Class |
getClassKey()
缓存器的class标识
|
static LoginUserExecutor |
getInstance() |
LoginUser |
getLoginUser(java.lang.String username)
获取白名单对象
|
int |
getLoginUserCount()
获取用户白名单列表大小
|
void |
rebuildCache()
重新初始化
|
void |
removeCache(java.lang.String username)
从缓存中删除白名单用户对象
|
public static LoginUserExecutor getInstance()
public void buildCache() throws java.lang.Exception
buildCache
在接口中 CacheExecutor
java.lang.Exception
public void rebuildCache() throws java.lang.Exception
rebuildCache
在接口中 CacheExecutor
java.lang.Exception
public boolean containCache(java.lang.String username)
containCache
在接口中 LoginUserExecutor
username
- 用户名public int getLoginUserCount()
getLoginUserCount
在接口中 LoginUserExecutor
public java.util.List<LoginUser> getAllLoginUserList()
getAllLoginUserList
在接口中 LoginUserExecutor
public java.util.List<LoginUser> getAllLoginUserListSorted()
getAllLoginUserListSorted
在接口中 LoginUserExecutor
public LoginUser getLoginUser(java.lang.String username)
getLoginUser
在接口中 LoginUserExecutor
username
- 用户名public void cache(LoginUser loginUser)
cache
在接口中 LoginUserExecutor
loginUser
- 白名单用户对象public void removeCache(java.lang.String username)
removeCache
在接口中 LoginUserExecutor
username
- 用户名public void clearCache() throws java.lang.Exception
CacheExecutor
clearCache
在接口中 CacheExecutor
java.lang.Exception
public java.lang.Class getClassKey()
CacheExecutor
getClassKey
在接口中 CacheExecutor