public abstract class AbstractExoCache<K extends Serializable,V> extends Object implements ExoCache<K,V>
ExoCache implementation based on Cache.| Modifier and Type | Class and Description |
|---|---|
class |
AbstractExoCache.CacheEventListener |
| Modifier and Type | Field and Description |
|---|---|
protected org.infinispan.AdvancedCache<K,V> |
cache |
| Constructor and Description |
|---|
AbstractExoCache(ExoCacheConfig config,
org.infinispan.Cache<K,V> cache) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCacheListener(CacheListener<? super K,? super V> listener) |
void |
clearCache() |
V |
get(Serializable name) |
List<V> |
getCachedObjects() |
int |
getCacheHit() |
int |
getCacheMiss() |
int |
getCacheSize() |
String |
getLabel() |
String |
getName() |
boolean |
isAsynchronous() |
boolean |
isDistributed() |
boolean |
isLogEnabled() |
boolean |
isReplicated() |
void |
onClearCache() |
void |
onExpire(K key,
V obj) |
void |
onGet(K key,
V obj) |
void |
onPut(K key,
V obj) |
void |
onPutLocal(K key,
V value) |
void |
onRemove(K key,
V obj) |
void |
put(K key,
V value) |
void |
putAsyncMap(Map<? extends K,? extends V> objs) |
void |
putLocal(K key,
V value) |
void |
putMap(Map<? extends K,? extends V> objs) |
protected void |
putOnly(K key,
V value,
boolean isLocal)
Only puts the data into the cache nothing more
|
V |
remove(Serializable key) |
List<V> |
removeCachedObjects() |
void |
removeLocal(Serializable key) |
void |
select(CachedObjectSelector<? super K,? super V> selector) |
void |
setAsynchronous(boolean asynchronous) |
void |
setDistributed(boolean distributed) |
void |
setLabel(String label) |
void |
setLogEnabled(boolean logEnabled) |
void |
setName(String name) |
void |
setReplicated(boolean replicated) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLiveTime, getMaxSize, setLiveTime, setMaxSizeprotected final org.infinispan.AdvancedCache<K extends Serializable,V> cache
public AbstractExoCache(ExoCacheConfig config, org.infinispan.Cache<K,V> cache)
public void addCacheListener(CacheListener<? super K,? super V> listener)
addCacheListener in interface ExoCache<K extends Serializable,V>public void clearCache()
clearCache in interface ExoCache<K extends Serializable,V>public V get(Serializable name)
get in interface ExoCache<K extends Serializable,V>public int getCacheHit()
getCacheHit in interface ExoCache<K extends Serializable,V>public int getCacheMiss()
getCacheMiss in interface ExoCache<K extends Serializable,V>public int getCacheSize()
getCacheSize in interface ExoCache<K extends Serializable,V>public List<V> getCachedObjects()
getCachedObjects in interface ExoCache<K extends Serializable,V>public String getLabel()
getLabel in interface ExoCache<K extends Serializable,V>public String getName()
getName in interface ExoCache<K extends Serializable,V>public boolean isDistributed()
public boolean isLogEnabled()
isLogEnabled in interface ExoCache<K extends Serializable,V>public boolean isReplicated()
public void setAsynchronous(boolean asynchronous)
public boolean isAsynchronous()
public void put(K key, V value) throws IllegalArgumentException
put in interface ExoCache<K extends Serializable,V>IllegalArgumentExceptionpublic void putLocal(K key, V value) throws IllegalArgumentException
putLocal in interface ExoCache<K extends Serializable,V>IllegalArgumentExceptionprotected void putOnly(K key, V value, boolean isLocal)
public void putMap(Map<? extends K,? extends V> objs) throws IllegalArgumentException
putMap in interface ExoCache<K extends Serializable,V>IllegalArgumentExceptionpublic void putAsyncMap(Map<? extends K,? extends V> objs) throws IllegalArgumentException
putAsyncMap in interface ExoCache<K extends Serializable,V>IllegalArgumentExceptionpublic V remove(Serializable key) throws NullPointerException
remove in interface ExoCache<K extends Serializable,V>NullPointerExceptionpublic void removeLocal(Serializable key) throws NullPointerException
removeLocal in interface ExoCache<K extends Serializable,V>NullPointerExceptionpublic List<V> removeCachedObjects()
removeCachedObjects in interface ExoCache<K extends Serializable,V>public void select(CachedObjectSelector<? super K,? super V> selector) throws Exception
public void setDistributed(boolean distributed)
public void setLabel(String label)
setLabel in interface ExoCache<K extends Serializable,V>public void setLogEnabled(boolean logEnabled)
setLogEnabled in interface ExoCache<K extends Serializable,V>public void setName(String name)
setName in interface ExoCache<K extends Serializable,V>public void setReplicated(boolean replicated)
public void onExpire(K key, V obj)
onExpire in interface ExoCache<K extends Serializable,V>public void onRemove(K key, V obj)
onRemove in interface ExoCache<K extends Serializable,V>public void onPut(K key, V obj)
onPut in interface ExoCache<K extends Serializable,V>public void onPutLocal(K key, V value)
onPutLocal in interface ExoCache<K extends Serializable,V>public void onGet(K key, V obj)
onGet in interface ExoCache<K extends Serializable,V>public void onClearCache()
onClearCache in interface ExoCache<K extends Serializable,V>Copyright © 2018 eXo Platform SAS. All Rights Reserved.