|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CacheManagerPeerListener
A listener for updates, which controls remote cache peers.
Method Summary | |
---|---|
void |
attemptResolutionOfUniqueResourceConflict()
If a conflict is detected in unique resource use, this method signals the listener to attempt automatic resolution of the resource conflict. |
void |
dispose()
Stop the listener and free any resources. |
java.util.List |
getBoundCachePeers()
All of the caches which are listenting for remote changes. |
Status |
getStatus()
Returns the listener status. |
java.lang.String |
getUniqueResourceIdentifier()
A listener will normally have a resource that only one instance can use at the same time, such as a port. |
void |
init()
Call to start the listeners and do any other network initialisation. |
Methods inherited from interface net.sf.ehcache.event.CacheManagerEventListener |
---|
notifyCacheAdded, notifyCacheRemoved |
Method Detail |
---|
void init() throws CacheException
CacheException
void dispose() throws CacheException
CacheException
java.util.List getBoundCachePeers()
CachePeer
objectsStatus getStatus()
java.lang.String getUniqueResourceIdentifier()
void attemptResolutionOfUniqueResourceConflict() throws java.lang.IllegalStateException, CacheException
java.lang.IllegalStateException
- if the statis of the listener is not Status.STATUS_UNINITIALISED
CacheException
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |