Class ClusteredCache
java.lang.Object
com.atlassian.jira.plugin.cluster.monitoring.internal.ClusteredCache
This class is a cache with
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 Summary
ConstructorsConstructorDescriptionClusteredCache(com.atlassian.cache.CacheManager cacheManager, ClusterManager clusterManager) -
Method Summary
Modifier and TypeMethodDescriptioneach node can read other node's valuesvoidput(String key, ExpiringTableSupplier value) each node can only put it's own valuesvoideach node can only remove it's own values
-
Constructor Details
-
ClusteredCache
-
-
Method Details
-
put
each node can only put it's own values -
remove
each node can only remove it's own values -
get
each node can read other node's values
-