|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jcs.engine.CacheAdaptor<K,V>
public class CacheAdaptor<K extends Serializable,V extends Serializable>
Used for Cache-to-Cache messaging purposes. These are used in the balking facades in the lateral and remote caches.
| Field Summary | |
|---|---|
protected long |
listenerId
The unique id of this listener. |
| Constructor Summary | |
|---|---|
CacheAdaptor(ICache<K,V> cache)
Constructor for the CacheAdaptor object |
|
| Method Summary | |
|---|---|
long |
getListenerId()
Gets the listenerId attribute of the CacheAdaptor object |
void |
handleDispose(String cacheName)
Shutdown call. |
void |
handlePut(ICacheElement<K,V> item)
Puts an item into the cache. |
void |
handleRemove(String cacheName,
K key)
Removes an item. |
void |
handleRemoveAll(String cacheName)
Clears the region. |
void |
setListenerId(long id)
Sets the listenerId attribute of the CacheAdaptor object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected long listenerId
| Constructor Detail |
|---|
public CacheAdaptor(ICache<K,V> cache)
cache - | Method Detail |
|---|
public void setListenerId(long id)
throws IOException
setListenerId in interface ICacheListener<K extends Serializable,V extends Serializable>id - The new listenerId value
IOException
public long getListenerId()
throws IOException
getListenerId in interface ICacheListener<K extends Serializable,V extends Serializable>IOException
public void handlePut(ICacheElement<K,V> item)
throws IOException
handlePut in interface ICacheListener<K extends Serializable,V extends Serializable>item -
IOException
public void handleRemove(String cacheName,
K key)
throws IOException
handleRemove in interface ICacheListener<K extends Serializable,V extends Serializable>cacheName - key -
IOException
public void handleRemoveAll(String cacheName)
throws IOException
handleRemoveAll in interface ICacheListener<K extends Serializable,V extends Serializable>cacheName -
IOException
public void handleDispose(String cacheName)
throws IOException
handleDispose in interface ICacheListener<K extends Serializable,V extends Serializable>cacheName -
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||