public class CachingRMICachePeerManager extends Object implements RMICachePeerManager
Key
.
If there is no Value
for Key
it is computed.
If the Node
which was used to compute Value#cachePeer
has changed (is not equal) the
Value#cachePeer
will be re-computed and Value#node
set to new node.
If there were errors (NotBoundException
or RemoteException
) when getting or using given
CachePeer
it will be removed from cache and re-created on next request.
Service defined in com.atlassian.jira.ClusterServicesRegistrar
only available in clustered jira and
when LocalQConfig.isLocalQReplicationDisabled()
is false.RMICachePeerManager.CachePeerCallable
Constructor and Description |
---|
CachingRMICachePeerManager(RMICachePeerProvider rmiCachePeerProvider) |
Modifier and Type | Method and Description |
---|---|
void |
withCachePeer(Node node,
String cacheName,
RMICachePeerManager.CachePeerCallable cachePeerCallable)
Provides access to a
CachePeer inside RMICachePeerManager.CachePeerCallable for a given Node and cacheName. |
public CachingRMICachePeerManager(RMICachePeerProvider rmiCachePeerProvider)
public void withCachePeer(Node node, String cacheName, RMICachePeerManager.CachePeerCallable cachePeerCallable) throws NotBoundException, RemoteException
RMICachePeerManager
CachePeer
inside RMICachePeerManager.CachePeerCallable
for a given Node
and cacheName.
RMICachePeerManager.CachePeerCallable
is invoked synchronously.withCachePeer
in interface RMICachePeerManager
NotBoundException
RemoteException
Copyright © 2002-2019 Atlassian. All Rights Reserved.