|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jcs.engine.ZombieCacheService<K,V>
org.apache.jcs.engine.ZombieCacheServiceNonLocal<K,V>
public class ZombieCacheServiceNonLocal<K extends Serializable,V extends Serializable>
Zombie adapter for the non local cache services. It just balks if there is no queue configured.
If a queue is configured, then events will be added to the queue. The idea is that when proper operation is restored, the non local cache will walk the queue. The queue must be bounded so it does not eat memory.
This originated in the remote cache.
| Nested Class Summary | |
|---|---|
protected static class |
ZombieCacheServiceNonLocal.ZombieEvent
Base of the other events. |
| Constructor Summary | |
|---|---|
ZombieCacheServiceNonLocal()
Default. |
|
ZombieCacheServiceNonLocal(int maxQueueSize)
Sets the maximum number of items that will be allowed on the queue. |
|
| Method Summary | |
|---|---|
ICacheElement<K,V> |
get(String cacheName,
K key,
long requesterId)
Does nothing. |
Set<K> |
getGroupKeys(String cacheName,
String groupName)
Does nothing. |
Set<String> |
getGroupNames(String cacheName)
Does nothing. |
Map<K,ICacheElement<K,V>> |
getMatching(String cacheName,
String pattern,
long requesterId)
Does nothing. |
Map<K,ICacheElement<K,V>> |
getMultiple(String cacheName,
Set<K> keys,
long requesterId)
Gets multiple items from the cache based on the given set of keys. |
int |
getQueueSize()
Gets the number of items on the queue. |
void |
propagateEvents(ICacheServiceNonLocal<K,V> service)
Walk the queue, calling the service for each queue operation. |
void |
remove(String cacheName,
K key,
long listenerId)
Adds a removeAll event to the queue if the maxSize is greater than 0; |
void |
removeAll(String cacheName,
long listenerId)
Adds a removeAll event to the queue if the maxSize is greater than 0; |
void |
update(ICacheElement<K,V> item,
long listenerId)
Adds an update event to the queue if the maxSize is greater than 0; |
| Methods inherited from class org.apache.jcs.engine.ZombieCacheService |
|---|
dispose, get, get, getMatching, getMultiple, put, release, remove, removeAll, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.jcs.engine.behavior.ICacheService |
|---|
dispose, get, getMatching, getMultiple, release, remove, removeAll, update |
| Constructor Detail |
|---|
public ZombieCacheServiceNonLocal()
public ZombieCacheServiceNonLocal(int maxQueueSize)
maxQueueSize - | Method Detail |
|---|
public int getQueueSize()
public void update(ICacheElement<K,V> item,
long listenerId)
update in interface ICacheServiceNonLocal<K extends Serializable,V extends Serializable>item - ICacheElementlistenerId - - identifies the caller.
public void remove(String cacheName,
K key,
long listenerId)
remove in interface ICacheServiceNonLocal<K extends Serializable,V extends Serializable>cacheName - - region namekey - - item keylistenerId - - identifies the caller.
public void removeAll(String cacheName,
long listenerId)
removeAll in interface ICacheServiceNonLocal<K extends Serializable,V extends Serializable>cacheName - - name of the regionlistenerId - - identifies the caller.
public ICacheElement<K,V> get(String cacheName,
K key,
long requesterId)
throws IOException
get in interface ICacheServiceNonLocal<K extends Serializable,V extends Serializable>cacheName - - region namekey - - item keyrequesterId - - identifies the caller.
IOException
public Map<K,ICacheElement<K,V>> getMatching(String cacheName,
String pattern,
long requesterId)
throws IOException
getMatching in interface ICacheServiceNonLocal<K extends Serializable,V extends Serializable>cacheName - pattern - requesterId -
IOException
public Map<K,ICacheElement<K,V>> getMultiple(String cacheName,
Set<K> keys,
long requesterId)
ICacheServiceNonLocal
getMultiple in interface ICacheServiceNonLocal<K extends Serializable,V extends Serializable>cacheName - - region namekeys - - item keyrequesterId - - identity of the caller
public Set<K> getGroupKeys(String cacheName,
String groupName)
getGroupKeys in interface ICacheServiceNonLocal<K extends Serializable,V extends Serializable>cacheName - - region namegroupName - - group name
public Set<String> getGroupNames(String cacheName)
getGroupNames in interface ICacheServiceNonLocal<K extends Serializable,V extends Serializable>cacheName - - region name
public void propagateEvents(ICacheServiceNonLocal<K,V> service)
throws Exception
service -
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||