public class DistributedExoCache<K extends Serializable,V> extends Object implements ExoCache<K,V>
| Modifier and Type | Class and Description |
|---|---|
class |
DistributedExoCache.CacheEventListener |
static class |
DistributedExoCache.CacheKey<K> |
static class |
DistributedExoCache.ClearCacheMapper<K,V> |
static class |
DistributedExoCache.ClearCacheReducer |
static class |
DistributedExoCache.GetCachedObjectsMapper<K,V> |
static class |
DistributedExoCache.GetCachedObjectsReducer<K,V> |
static class |
DistributedExoCache.GetEntriesMapper<K,V> |
static class |
DistributedExoCache.GetEntriesReducer<K,V> |
static class |
DistributedExoCache.GetSizeMapper<K,V> |
static class |
DistributedExoCache.GetSizeReducer<K> |
| Modifier and Type | Field and Description |
|---|---|
protected org.infinispan.AdvancedCache<DistributedExoCache.CacheKey<K>,V> |
cache |
static String |
CACHE_NAME |
| Constructor and Description |
|---|
DistributedExoCache(ExoContainerContext ctx,
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() |
long |
getLiveTime() |
long |
getMaxIdle() |
int |
getMaxSize() |
String |
getName() |
long |
getWakeUpInterval() |
boolean |
isDistributed() |
boolean |
isLogEnabled() |
boolean |
isReplicated() |
void |
put(K key,
V value) |
void |
putMap(Map<? extends K,? extends V> objs) |
protected void |
putOnly(K key,
V value)
Only puts the data into the cache nothing more
|
V |
remove(Serializable name) |
List<V> |
removeCachedObjects() |
void |
select(CachedObjectSelector<? super K,? super V> selector) |
void |
setDistributed(boolean distributed) |
void |
setLabel(String label) |
void |
setLiveTime(long period) |
void |
setLogEnabled(boolean logEnabled) |
void |
setMaxSize(int max) |
void |
setName(String name) |
void |
setReplicated(boolean replicated) |
public static final String CACHE_NAME
protected final org.infinispan.AdvancedCache<DistributedExoCache.CacheKey<K extends Serializable>,V> cache
public DistributedExoCache(ExoContainerContext ctx, 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 put(K key, V value) throws IllegalArgumentException
put in interface ExoCache<K extends Serializable,V>IllegalArgumentExceptionpublic void putMap(Map<? extends K,? extends V> objs) throws IllegalArgumentException
putMap in interface ExoCache<K extends Serializable,V>IllegalArgumentExceptionpublic V remove(Serializable name) throws IllegalArgumentException
remove in interface ExoCache<K extends Serializable,V>IllegalArgumentExceptionpublic 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 setMaxSize(int max)
setMaxSize in interface ExoCache<K extends Serializable,V>public void setLiveTime(long period)
setLiveTime in interface ExoCache<K extends Serializable,V>public int getMaxSize()
getMaxSize in interface ExoCache<K extends Serializable,V>public long getLiveTime()
getLiveTime in interface ExoCache<K extends Serializable,V>public long getMaxIdle()
public long getWakeUpInterval()
Copyright © 2014 eXo Platform SAS. All Rights Reserved.