public class ClassLoaderAwareCache<K,V> extends AbstractDelegatingAdvancedCache<K,V>
Modifier and Type | Class and Description |
---|---|
static class |
ClassLoaderAwareCache.ClassLoaderAwareListener |
cache
Constructor and Description |
---|
ClassLoaderAwareCache(AdvancedCache<K,V> cache,
ClassLoader classLoader) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(Object listener)
Adds a listener to the component.
|
Stats |
getStats()
Returns a
Stats object that allows several statistics associated
with this cache at runtime. |
void |
stop() |
addInterceptor, addInterceptorAfter, addInterceptorBefore, applyDelta, getAdvancedCache, getBatchContainer, getClassLoader, getComponentRegistry, getDataContainer, getDistributionManager, getEvictionManager, getInterceptorChain, getInvocationContextContainer, getLockManager, getRpcManager, getTransactionManager, getXAResource, lock, lock, putForExternalRead, removeInterceptor, removeInterceptor, with, withFlags
clear, clearAsync, compact, containsKey, containsValue, endBatch, entrySet, evict, get, getAsync, getCacheConfiguration, getCacheManager, getConfiguration, getListeners, getName, getStatus, getVersion, isEmpty, keySet, put, put, put, putAll, putAll, putAll, putAllAsync, putAllAsync, putAllAsync, putAsync, putAsync, putAsync, putForExternalRead, putIfAbsent, putIfAbsent, putIfAbsent, putIfAbsentAsync, putIfAbsentAsync, putIfAbsentAsync, remove, remove, removeAsync, removeAsync, removeListener, replace, replace, replace, replace, replace, replace, replaceAsync, replaceAsync, replaceAsync, replaceAsync, replaceAsync, replaceAsync, set, size, start, startBatch, toString, values
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
compact, endBatch, entrySet, evict, getCacheConfiguration, getCacheManager, getConfiguration, getStatus, keySet, putForExternalRead, startBatch, values
clearAsync, getAsync, getName, getVersion, put, put, putAll, putAll, putAllAsync, putAllAsync, putAllAsync, putAsync, putAsync, putAsync, putIfAbsent, putIfAbsent, putIfAbsentAsync, putIfAbsentAsync, putIfAbsentAsync, removeAsync, removeAsync, replace, replace, replace, replace, replaceAsync, replaceAsync, replaceAsync, replaceAsync, replaceAsync, replaceAsync
putIfAbsent, remove, replace, replace
clear, containsKey, containsValue, equals, get, hashCode, isEmpty, put, putAll, remove, size
getListeners, removeListener
public ClassLoaderAwareCache(AdvancedCache<K,V> cache, ClassLoader classLoader)
public Stats getStats()
AdvancedCache
Stats
object that allows several statistics associated
with this cache at runtime.getStats
in interface AdvancedCache<K,V>
getStats
in class AbstractDelegatingAdvancedCache<K,V>
Stats
objectpublic void stop()
public void addListener(Object listener)
Listenable
Listener
and
further to that, contain methods annotated appropriately, otherwise the listener will not be registered.
See the Listener
annotation for more information.
addListener
in interface Listenable
addListener
in class AbstractDelegatingCache<K,V>
listener
- must not be null.Copyright © 2012 JBoss by Red Hat. All Rights Reserved.