public class UserDevicesDictByCache extends Object implements UserDevicesDict
UserDevicesDict.UserStatususersConfig| 构造器和说明 |
|---|
UserDevicesDictByCache(AuthzProperties properties,
Cache cache) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addUser(TokenPair tokenPair) |
void |
deviceClean(Object userId) |
DeviceDetails |
getDevice(Object userId,
String deviceType,
String deviceId) |
boolean |
isLogin(Object userId,
String id) |
List<DeviceDetails> |
listActiveUserDevices(long ms)
所有用户【在线/活跃】 设备
|
List<DeviceDetails> |
listActiveUserDevices(Object userId,
long ms)
某个用户的【在线/活跃】 设备
|
List<DeviceDetails> |
listDevicesByUserId(Object userId) |
List<Object> |
listUserId() |
boolean |
refreshUser(TokenPair tokenPair) |
void |
removeAccessTokenByTid(Object userId,
String tid) |
void |
removeAllDevice(Object userId) |
void |
removeCurrentDevice() |
void |
removeDevice(Object userId,
String deviceType,
String deviceId) |
void |
removeDeviceById(Object userId,
String id) |
void |
request(HttpMeta httpMeta) |
UserDevicesDict.UserStatus |
userStatus(AccessToken accessToken)
用户设备状态判断,以及L1Cache下的第二次惰性删除
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddDeviceTypesTotalLimit, changeMaximumTotalDevice, changeMaximumTotalSameTypeDevice, equalsDeviceByTypeAndId, getOrUpdateDeviceTypesTotalLimit, key, key, key, oauthKey, oauthKey, requestKey, requestKeypublic UserDevicesDictByCache(AuthzProperties properties, Cache cache)
public UserDevicesDict.UserStatus userStatus(AccessToken accessToken)
UserDevicesDictuserStatus 在接口中 UserDevicesDictaccessToken - tokenUserDevicesDict.UserStatuspublic void addUser(TokenPair tokenPair)
addUser 在接口中 UserDevicesDictpublic boolean refreshUser(TokenPair tokenPair)
refreshUser 在接口中 UserDevicesDictpublic void removeAccessTokenByTid(Object userId, String tid)
removeAccessTokenByTid 在接口中 UserDevicesDictpublic void removeDeviceById(Object userId, String id)
removeDeviceById 在接口中 UserDevicesDictpublic void removeAllDevice(Object userId)
removeAllDevice 在接口中 UserDevicesDictpublic void removeCurrentDevice()
removeCurrentDevice 在接口中 UserDevicesDictpublic boolean isLogin(Object userId, String id)
isLogin 在接口中 UserDevicesDictpublic void removeDevice(Object userId, String deviceType, String deviceId)
removeDevice 在接口中 UserDevicesDictpublic DeviceDetails getDevice(Object userId, String deviceType, String deviceId)
getDevice 在接口中 UserDevicesDictpublic List<Object> listUserId()
listUserId 在接口中 UserDevicesDictpublic List<DeviceDetails> listDevicesByUserId(Object userId)
listDevicesByUserId 在接口中 UserDevicesDictpublic List<DeviceDetails> listActiveUserDevices(Object userId, long ms)
UserDevicesDictlistActiveUserDevices 在接口中 UserDevicesDictms - 毫秒数public List<DeviceDetails> listActiveUserDevices(long ms)
UserDevicesDictlistActiveUserDevices 在接口中 UserDevicesDictms - 毫秒数public void request(HttpMeta httpMeta)
request 在接口中 UserDevicesDictpublic void deviceClean(Object userId)
deviceClean 在接口中 UserDevicesDictCopyright © 2022. All rights reserved.