public class SessionRepositoryService extends AbstractSnapshotProcess implements RepositoryService<String,RenewDecorate<SessionNode>>
| 构造器和说明 |
|---|
SessionRepositoryService()
constructor
|
SessionRepositoryService(ConcurrentHashMap<String,RenewDecorate<SessionNode>> registry)
constructor
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
checkVersion(String key,
Long version) |
SnapshotProcess |
copy() |
RenewDecorate<SessionNode> |
get(Object key) |
Map<String,RenewDecorate<SessionNode>> |
getAllData() |
Map<String,Map<String,RenewDecorate<SessionNode>>> |
getAllDataMap() |
Map<String,NodeRepository> |
getNodeRepositories() |
Set<String> |
getSnapshotFileNames() |
Long |
getVersion(String key) |
boolean |
load(String path) |
RenewDecorate<SessionNode> |
put(String ipAddress,
RenewDecorate<SessionNode> sessionNode) |
RenewDecorate<SessionNode> |
remove(Object key) |
RenewDecorate<SessionNode> |
replace(String ipAddress,
RenewDecorate<SessionNode> sessionNode) |
Map<String,RenewDecorate<SessionNode>> |
replaceAll(String dataCenter,
Map<String,RenewDecorate<SessionNode>> map,
Long version) |
boolean |
save(String path) |
void |
setNodeConfig(NodeConfig nodeConfig)
Setter method for property nodeConfig.
|
load, savepublic SessionRepositoryService()
public SessionRepositoryService(ConcurrentHashMap<String,RenewDecorate<SessionNode>> registry)
registry - public SnapshotProcess copy()
copy 在接口中 SnapshotProcesspublic RenewDecorate<SessionNode> put(String ipAddress, RenewDecorate<SessionNode> sessionNode)
put 在接口中 RepositoryService<String,RenewDecorate<SessionNode>>public RenewDecorate<SessionNode> remove(Object key)
remove 在接口中 RepositoryService<String,RenewDecorate<SessionNode>>public RenewDecorate<SessionNode> replace(String ipAddress, RenewDecorate<SessionNode> sessionNode)
replace 在接口中 RepositoryService<String,RenewDecorate<SessionNode>>public RenewDecorate<SessionNode> get(Object key)
get 在接口中 RepositoryService<String,RenewDecorate<SessionNode>>public Map<String,RenewDecorate<SessionNode>> getAllData()
getAllData 在接口中 RepositoryService<String,RenewDecorate<SessionNode>>public Map<String,Map<String,RenewDecorate<SessionNode>>> getAllDataMap()
getAllDataMap 在接口中 RepositoryService<String,RenewDecorate<SessionNode>>public Map<String,RenewDecorate<SessionNode>> replaceAll(String dataCenter, Map<String,RenewDecorate<SessionNode>> map, Long version)
replaceAll 在接口中 RepositoryService<String,RenewDecorate<SessionNode>>public Map<String,NodeRepository> getNodeRepositories()
public boolean save(String path)
save 在接口中 SnapshotProcesspublic boolean load(String path)
load 在接口中 SnapshotProcesspublic Set<String> getSnapshotFileNames()
getSnapshotFileNames 在接口中 SnapshotProcesspublic boolean checkVersion(String key, Long version)
checkVersion 在接口中 RepositoryService<String,RenewDecorate<SessionNode>>public Long getVersion(String key)
getVersion 在接口中 RepositoryService<String,RenewDecorate<SessionNode>>public void setNodeConfig(NodeConfig nodeConfig)
nodeConfig - value to be assigned to property nodeConfigCopyright © 2019 The Ant Financial. All rights reserved.