|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jcs.auxiliary.lateral.javagroups.LateralCacheJGListener
JavaGroups listener. Good for distributing cache data accross multiple vms on the same machine. You also don't need to know the number of listerners for configuration.
Field Summary | |
protected static CompositeCacheManager |
cacheMgr
Description of the Field |
protected static java.util.HashMap |
instances
Description of the Field |
Constructor Summary | |
protected |
LateralCacheJGListener(ILateralCacheAttributes ilca)
Only need one since it does work for all regions, just reference by multiple region names. |
Method Summary | |
protected CompositeCache |
getCache(java.lang.String name)
Gets the cacheManager attribute of the LateralCacheTCPListener object |
static ILateralCacheListener |
getInstance(ILateralCacheAttributes ilca)
Gets the instance attribute of the LateralCacheJGListener class |
long |
getListenerId()
Gets the listenerId attribute of the LateralCacheJGListener object |
void |
handleDispose(java.lang.String cacheName)
Description of the Method |
java.io.Serializable |
handleGet(java.lang.String cacheName,
java.io.Serializable key)
Test get implementation. |
void |
handlePut(ICacheElement element)
Notifies the subscribers for a cache entry update. |
void |
handleRemove(java.lang.String cacheName,
java.io.Serializable key)
Description of the Method |
void |
handleRemoveAll(java.lang.String cacheName)
Description of the Method |
void |
init()
Description of the Method |
void |
setListenerId(long id)
let the lateral cache set a listener_id. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static transient CompositeCacheManager cacheMgr
protected static final java.util.HashMap instances
Constructor Detail |
protected LateralCacheJGListener(ILateralCacheAttributes ilca)
ilca
- Method Detail |
public void init()
init
in interface ILateralCacheJGListener
public void setListenerId(long id) throws java.io.IOException
setListenerId
in interface ICacheListener
id
- The new listenerId value
java.io.IOException
public long getListenerId() throws java.io.IOException
getListenerId
in interface ICacheListener
java.io.IOException
public static ILateralCacheListener getInstance(ILateralCacheAttributes ilca)
ilca
-
public void handlePut(ICacheElement element) throws java.io.IOException
ICacheListener
handlePut
in interface ICacheListener
java.io.IOException
public void handleRemove(java.lang.String cacheName, java.io.Serializable key) throws java.io.IOException
handleRemove
in interface ICacheListener
cacheName
- key
-
java.io.IOException
public void handleRemoveAll(java.lang.String cacheName) throws java.io.IOException
handleRemoveAll
in interface ICacheListener
cacheName
-
java.io.IOException
public java.io.Serializable handleGet(java.lang.String cacheName, java.io.Serializable key) throws java.io.IOException
handleGet
in interface ILateralCacheJGListener
cacheName
- key
-
java.io.IOException
public void handleDispose(java.lang.String cacheName) throws java.io.IOException
handleDispose
in interface ICacheListener
cacheName
-
java.io.IOException
protected CompositeCache getCache(java.lang.String name)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |