net.sf.ehcache.distribution
public interface CacheManagerPeerListener extends CacheManagerEventListener
Version: $Id: CacheManagerPeerListener.java 108 2006-06-04 12:44:06Z gregluck $
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. |
List | getBoundCachePeers()
All of the caches which are listenting for remote changes. |
Status | getStatus()
Returns the listener status. |
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. |
Throws: IllegalStateException if the statis of the listener is not STATUS_UNINITIALISED
Throws: CacheException
Returns: a list of CachePeer
objects
Returns: a String identifier for the resource
Throws: CacheException