|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jcs.auxiliary.AbstractAuxiliaryCache<K,V>
org.apache.jcs.auxiliary.lateral.LateralCacheNoWaitFacade<K,V>
public class LateralCacheNoWaitFacade<K extends Serializable,V extends Serializable>
Used to provide access to multiple services under nowait protection. Composite factory should construct LateralCacheNoWaitFacade to give to the composite cache out of caches it constructs from the varies manager to lateral services. Perhaps the lateralcache factory should be able to do this.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.jcs.engine.behavior.ICacheType |
|---|
ICacheType.CacheType |
| Field Summary | |
|---|---|
LateralCacheNoWait<K,V>[] |
noWaits
The queuing facade to the client. |
| Fields inherited from class org.apache.jcs.auxiliary.AbstractAuxiliaryCache |
|---|
cacheEventLogger, elementSerializer, keyMatcher |
| Constructor Summary | |
|---|---|
LateralCacheNoWaitFacade(ILateralCacheListener<K,V> listener,
LateralCacheNoWait<K,V>[] noWaits,
ILateralCacheAttributes cattr)
Constructs with the given lateral cache, and fires events to any listeners. |
|
| Method Summary | |
|---|---|
boolean |
addNoWait(LateralCacheNoWait<K,V> noWait)
Adds a no wait to the list if it isn't already in the list. |
boolean |
containsNoWait(LateralCacheNoWait<K,V> noWait)
Tells you if the no wait is in the list or not. |
void |
dispose()
Adds a dispose request to the lateral cache. |
ICacheElement<K,V> |
get(K key)
Synchronously reads from the lateral cache. |
AuxiliaryCacheAttributes |
getAuxiliaryCacheAttributes()
This returns the generic attributes for an auxiliary cache. |
String |
getCacheName()
Gets the cacheName attribute of the LateralCacheNoWaitFacade object. |
ICacheType.CacheType |
getCacheType()
Gets the cacheType attribute of the LateralCacheNoWaitFacade object. |
String |
getEventLoggingExtraInfo()
this won't be called since we don't do ICache logging here. |
Set<K> |
getGroupKeys(String group)
Gets the set of keys of objects currently in the group. |
Set<String> |
getGroupNames()
Gets the set of group names in the cache |
Map<K,ICacheElement<K,V>> |
getMatching(String pattern)
Synchronously reads from the lateral cache. |
Map<K,ICacheElement<K,V>> |
getMultiple(Set<K> keys)
Gets multiple items from the cache based on the given set of keys. |
int |
getSize()
No lateral invocation. |
IStats |
getStatistics()
|
String |
getStats()
getStats |
CacheStatus |
getStatus()
Gets the status attribute of the LateralCacheNoWaitFacade object |
boolean |
remove(K key)
Adds a remove request to the lateral cache. |
void |
removeAll()
Adds a removeAll request to the lateral cache. |
boolean |
removeNoWait(LateralCacheNoWait<K,V> noWait)
Removes a no wait from the list if it is already there. |
String |
toString()
|
void |
update(ICacheElement<K,V> ce)
Puts an item to the cache. |
| Methods inherited from class org.apache.jcs.auxiliary.AbstractAuxiliaryCache |
|---|
createICacheEvent, createICacheEvent, getCacheEventLogger, getElementSerializer, getKeyMatcher, logApplicationEvent, logError, logICacheEvent, setCacheEventLogger, setElementSerializer, setKeyMatcher |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public LateralCacheNoWait<K extends Serializable,V extends Serializable>[] noWaits
| Constructor Detail |
|---|
public LateralCacheNoWaitFacade(ILateralCacheListener<K,V> listener,
LateralCacheNoWait<K,V>[] noWaits,
ILateralCacheAttributes cattr)
noWaits - cattr - | Method Detail |
|---|
public boolean containsNoWait(LateralCacheNoWait<K,V> noWait)
noWait -
public boolean addNoWait(LateralCacheNoWait<K,V> noWait)
noWait -
public boolean removeNoWait(LateralCacheNoWait<K,V> noWait)
noWait -
public void update(ICacheElement<K,V> ce)
throws IOException
ICache
ce -
IOExceptionpublic ICacheElement<K,V> get(K key)
key -
public Map<K,ICacheElement<K,V>> getMultiple(Set<K> keys)
keys -
public Map<K,ICacheElement<K,V>> getMatching(String pattern)
pattern -
public Set<K> getGroupKeys(String group)
group -
public Set<String> getGroupNames()
public boolean remove(K key)
key -
public void removeAll()
public void dispose()
public int getSize()
public ICacheType.CacheType getCacheType()
public String getCacheName()
public CacheStatus getStatus()
public AuxiliaryCacheAttributes getAuxiliaryCacheAttributes()
AuxiliaryCache
public String toString()
toString in class Objectpublic String getEventLoggingExtraInfo()
getEventLoggingExtraInfo in class AbstractAuxiliaryCache<K extends Serializable,V extends Serializable>public String getStats()
public IStats getStatistics()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||