Class CallbackAwareCachePeer
java.lang.Object
com.atlassian.jira.cluster.distribution.CallbackAwareCachePeer
- All Implemented Interfaces:
Remote
,net.sf.ehcache.distribution.CachePeer
CachePeer implementation which allows a callback to be notified of method success and failure.
This was previously handled (more elegantly) through the use of a Proxy
, but due to
security concerns, this more verbose approach is preferred.
-
Constructor Summary
ConstructorsConstructorDescriptionCallbackAwareCachePeer
(net.sf.ehcache.distribution.CachePeer delegate, CuttingOffExecutor.Callback callback) -
Method Summary
Modifier and TypeMethodDescriptiongetElements
(List list) getGuid()
getKeys()
getName()
net.sf.ehcache.Element
getQuiet
(Serializable serializable) getUrl()
void
put
(net.sf.ehcache.Element element) boolean
remove
(Serializable serializable) void
void
-
Constructor Details
-
CallbackAwareCachePeer
public CallbackAwareCachePeer(net.sf.ehcache.distribution.CachePeer delegate, CuttingOffExecutor.Callback callback)
-
-
Method Details
-
put
public void put(net.sf.ehcache.Element element) throws IllegalArgumentException, IllegalStateException, RemoteException - Specified by:
put
in interfacenet.sf.ehcache.distribution.CachePeer
- Throws:
IllegalArgumentException
IllegalStateException
RemoteException
-
remove
- Specified by:
remove
in interfacenet.sf.ehcache.distribution.CachePeer
- Throws:
IllegalStateException
RemoteException
-
removeAll
- Specified by:
removeAll
in interfacenet.sf.ehcache.distribution.CachePeer
- Throws:
RemoteException
IllegalStateException
-
send
- Specified by:
send
in interfacenet.sf.ehcache.distribution.CachePeer
- Throws:
RemoteException
-
getName
- Specified by:
getName
in interfacenet.sf.ehcache.distribution.CachePeer
- Throws:
RemoteException
-
getGuid
- Specified by:
getGuid
in interfacenet.sf.ehcache.distribution.CachePeer
- Throws:
RemoteException
-
getUrl
- Specified by:
getUrl
in interfacenet.sf.ehcache.distribution.CachePeer
- Throws:
RemoteException
-
getUrlBase
- Specified by:
getUrlBase
in interfacenet.sf.ehcache.distribution.CachePeer
- Throws:
RemoteException
-
getKeys
- Specified by:
getKeys
in interfacenet.sf.ehcache.distribution.CachePeer
- Throws:
RemoteException
-
getQuiet
- Specified by:
getQuiet
in interfacenet.sf.ehcache.distribution.CachePeer
- Throws:
RemoteException
-
getElements
- Specified by:
getElements
in interfacenet.sf.ehcache.distribution.CachePeer
- Throws:
RemoteException
-