|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.swarmcache.Communicator
Abstract class that handles the communications for SwarmCache. To provide a full implementation:
send
method.
receive
upon receipt of a cache notification.
Constructor Summary | |
Communicator()
|
Method Summary | |
java.lang.String |
getGroupName()
|
MultiCacheManager |
getManager()
|
protected void |
receive(CacheNotification notification)
Call when a notification is received by the communications layer. |
protected abstract void |
send(CacheNotification notification)
Implement this to send a cache notification over the communications layer. |
protected void |
setGroupName(java.lang.String groupName)
|
void |
setManager(MultiCacheManager manager)
|
abstract void |
shutDown()
Called by the cache manager to shut down the communicator. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Communicator()
Method Detail |
protected void setGroupName(java.lang.String groupName)
public java.lang.String getGroupName()
public void setManager(MultiCacheManager manager)
public MultiCacheManager getManager()
protected void receive(CacheNotification notification)
notification
- the parsed cache notification.protected abstract void send(CacheNotification notification)
notification
- the cache notification to send.public abstract void shutDown()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |