|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jcs.engine.ZombieCacheService
org.apache.jcs.engine.ZombieCacheServiceNonLocal
public class ZombieCacheServiceNonLocal
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.
Constructor Summary | |
---|---|
ZombieCacheServiceNonLocal()
Default. |
|
ZombieCacheServiceNonLocal(int maxQueueSize)
Sets the maximum number of items that will be allowed on the queue. |
Method Summary | |
---|---|
ICacheElement |
get(String cacheName,
Serializable key,
long requesterId)
Does nothing. |
Set |
getGroupKeys(String cacheName,
String groupName)
Does nothing. |
Map |
getMatching(String cacheName,
String pattern,
long requesterId)
Does nothing. |
Map |
getMultiple(String cacheName,
Set 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 service)
Walk the queue, calling the service for each queue operation. |
void |
remove(String cacheName,
Serializable 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 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 item, long listenerId)
update
in interface ICacheServiceNonLocal
item
- ICacheElementlistenerId
- - identifies the caller.public void remove(String cacheName, Serializable key, long listenerId)
remove
in interface ICacheServiceNonLocal
cacheName
- - region namekey
- - item keylistenerId
- - identifies the caller.public void removeAll(String cacheName, long listenerId)
removeAll
in interface ICacheServiceNonLocal
cacheName
- - name of the regionlistenerId
- - identifies the caller.public ICacheElement get(String cacheName, Serializable key, long requesterId) throws IOException
get
in interface ICacheServiceNonLocal
cacheName
- - region namekey
- - item keyrequesterId
- - identifies the caller.
IOException
public Map getMatching(String cacheName, String pattern, long requesterId) throws IOException
getMatching
in interface ICacheServiceNonLocal
cacheName
- pattern
- requesterId
-
IOException
public Map getMultiple(String cacheName, Set keys, long requesterId)
ICacheServiceNonLocal
getMultiple
in interface ICacheServiceNonLocal
cacheName
- - region namekeys
- - item keyrequesterId
- - identity of the caller
public Set getGroupKeys(String cacheName, String groupName)
getGroupKeys
in interface ICacheServiceNonLocal
cacheName
- - region namegroupName
- - group name
public void propagateEvents(ICacheServiceNonLocal service) throws Exception
service
-
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |