@Component public class ClusteredCache extends Object
table supplier values
which is shared between all nodes. It only accept the key for
changing value in cache and wraps keys with current node id
, So no node can
change table supplier
as other node. But It accepts nodeId and key to retrieve value from cache, So any
node can read other node's table value
.Constructor and Description |
---|
ClusteredCache(com.atlassian.cache.CacheManager cacheManager,
ClusterManager clusterManager) |
Modifier and Type | Method and Description |
---|---|
ExpiringTableSupplier |
get(String nodeId,
String key)
each node can read other node's values
|
void |
put(String key,
ExpiringTableSupplier value)
each node can only put it's own values
|
void |
remove(String key)
each node can only remove it's own values
|
public ClusteredCache(com.atlassian.cache.CacheManager cacheManager, ClusterManager clusterManager)
public void put(String key, ExpiringTableSupplier value)
public void remove(String key)
public ExpiringTableSupplier get(String nodeId, String key)
Copyright © 2002-2023 Atlassian. All Rights Reserved.