| Modifier and Type | Class and Description |
|---|---|
| private class | ClassLoaderAwareCache.ClassLoaderAwareIterator
Iterator needed for ClassLoaderAwareList |
| private class | ClassLoaderAwareCache.ClassLoaderAwareList
This class takes care of loading and unloading of classloader appropriately. |
| Modifier and Type | Field and Description |
|---|---|
| protected final Ehcache | cache
Used by InternalClassLoaderAwareCache |
| protected final ClassLoader | classLoader
Used by InternalClassLoaderAwareCache |
| Access | Constructor and Description |
|---|---|
| public | ClassLoaderAwareCache(Ehcache
wrapped cache cache, ClassLoader loader to set Thread context loader to for duration of cache opeartion classLoader)Constructor |
| Modifier and Type | Method and Description |
|---|---|
| public void | acquireReadLockOnKey(Object
- The key that retrieves a value that you want to protect via locking arg0)Implements net. |
| public void | acquireWriteLockOnKey(Object
- The key that retrieves a value that you want to protect via locking arg0)Implements net. |
| public void | addPropertyChangeListener(PropertyChangeListener
the listener to add arg0)Implements net. |
| public void | |
| public long | calculateInMemorySize()
Implements net.
Deprecated
Gets the size of the memory store for this cacheWarning This method can be very expensive to run. |
| public long | calculateOffHeapSize()
Implements net.
Deprecated
Gets the size of the off-heap store for this cache
|
| public long | calculateOnDiskSize()
Implements net.
Deprecated
Gets the size of the on-disk store for this cache
|
| public Object | |
| public Query | createQuery()
Implements net. |
| public void | disableDynamicFeatures()
Implements net. |
| public void | dispose()
Implements net. |
| public void | evictExpiredElements()
Implements net. |
| public void | flush()
Implements net. |
| public Element | get(Object
an Object value arg0)Implements net. |
| public Element | get(Serializable
a serializable value arg0)Implements net. |
| public Map | getAll(Collection<E>
a collection of keys for which value is to be fetched arg0)Implements net. |
| public Map | getAllWithLoader(Collection<E>
a collection of keys to be returned/loaded arg0, Object an argument to pass to the CacheLoader. arg1)Implements net. |
| public BootstrapCacheLoader | getBootstrapCacheLoader()
Implements net. |
| public CacheConfiguration | getCacheConfiguration()
Implements net. |
| public RegisteredEventListeners | getCacheEventNotificationService()
Implements net. |
| public CacheExceptionHandler | |
| public CacheManager | getCacheManager()
Implements net. |
| public int | getDiskStoreSize()
Implements net.
Deprecated
Returns the number of elements in the disk store.
|
| public String | getGuid()
Implements net. |
| public Object | |
| public List | getKeys()
Implements net. |
| public List | getKeysNoDuplicateCheck()
Implements net. |
| public List | getKeysWithExpiryCheck()
Implements net. |
| public long | getMemoryStoreSize()
Implements net.
Deprecated
Returns the number of elements in the memory store.
|
| public String | |
| public long | getOffHeapStoreSize()
Implements net.
Deprecated
Returns the number of elements in the off-heap store.
|
| public Element | getQuiet(Serializable
a serializable value arg0)Implements net. |
| public Element | getQuiet(Object
a serializable value arg0)Implements net. |
| public List | |
| public List | |
| public CacheWriter | getRegisteredCacheWriter()
Implements net. CacheWriter that was registered for this cache.
|
| public Attribute | getSearchAttribute(String
the name of the attribute to retrieve arg0)Implements net. |
| public Set | |
| public int | |
| public StatisticsGateway | getStatistics()
Implements net. |
| public Status | |
| public Element | getWithLoader(Object
key whose associated value is to be returned. arg0, CacheLoader the override loader to use. If null, the cache's default loader will be used arg1, Object an argument to pass to the CacheLoader. arg2)Implements net. |
| public CacheWriterManager | getWriterManager()
Implements net. |
| public boolean | hasAbortedSizeOf()
Implements net. |
| public void | initialise()
Implements net. net. or
a net..
|
| public boolean | isClusterBulkLoadEnabled()
Implements net. |
| public boolean | isClusterCoherent()
Implements net. |
| public boolean | |
| public boolean | isElementInMemory(Object
the key of the element to remove arg0)Implements net. |
| public boolean | isElementInMemory(Serializable
the key of the element to remove arg0)Implements net. |
| public boolean | isElementOnDisk(Object
the key of the element to remove arg0)Implements net. |
| public boolean | isElementOnDisk(Serializable
the key of the element to remove arg0)Implements net. |
| public boolean | isExpired(Element
the element to check arg0)Implements net. |
| public boolean | isKeyInCache(Object
the key to check for arg0)Implements net. |
| public boolean | isNodeBulkLoadEnabled()
Implements net. |
| public boolean | isNodeCoherent()
Implements net. |
| public boolean | isReadLockedByCurrentThread(Object
the key arg0)Implements net. |
| public boolean | |
| public boolean | isValueInCache(Object
to check for arg0)Implements net. |
| public boolean | isWriteLockedByCurrentThread(Object
the key arg0)Implements net. |
| public void | load(Object
key whose associated value to be loaded using the associated cacheloader if this cache doesn't contain it. arg0)Implements net. |
| public void | loadAll(Collection<E>
- collection of the keys whose associated values to be loaded into this cache by using the associated
cacheloader if this cache doesn't contain them. arg0, Object can be anything that makes sense to the loader
arg1)
The Ehcache native API provides similar functionality to loaders using the
decorator Implements net. |
| public static void | |
| public void | put(Element
An object. If Serializable it can fully participate in replication and the DiskStore. arg0)Implements net. |
| public void | put(Element
An object. If Serializable it can fully participate in replication and the DiskStore. arg0, boolean whether the put is coming from a doNotNotifyCacheReplicators cache peer, in which case this put should not initiate a
further notification to doNotNotifyCacheReplicators cache peers arg1)Implements net. |
| public void | putAll(Collection<E>
the collection of elements to be put in the cache. arg0)Implements net. |
| public Element | putIfAbsent(Element
element to be added arg0)Implements net. |
| public Element | putIfAbsent(Element
element to be added arg0, boolean whether the put is coming from a doNotNotifyCacheReplicators cache peer, in which case this put should not initiate a
further notification to doNotNotifyCacheReplicators cache peers arg1)Implements net. |
| public void | putQuiet(Element
An object. If Serializable it can fully participate in replication and the DiskStore. arg0)Implements net. |
| public void | putWithWriter(Element
An object. If Serializable it can fully participate in replication and the DiskStore. arg0)Implements net. |
| public void | registerCacheExtension(CacheExtension
the cache extension arg0)Implements net. CacheExtension with the cache.
|
| public void | registerCacheLoader(CacheLoader
A Cache Loader to register arg0)Implements net. CacheLoader with the cache.
|
| public void | registerCacheWriter(CacheWriter
A CacheWriter to register arg0)Implements net. CacheWriter for this cache.
|
| public void | registerDynamicAttributesExtractor(DynamicAttributesExtractor
the dynamic attribute extractor extractor)Implements net. |
| public void | releaseReadLockOnKey(Object
- The key that retrieves a value that you want to protect via locking arg0)Implements net. |
| public void | releaseWriteLockOnKey(Object
- The key that retrieves a value that you want to protect via locking arg0)Implements net. |
| public boolean | remove(Serializable
the key of the element to remove arg0, boolean whether the put is coming from a doNotNotifyCacheReplicators cache peer, in which case this put should not initiate a
further notification to doNotNotifyCacheReplicators cache peers arg1)Implements net. net. from the Cache.
|
| public boolean | remove(Object
the key of the element to remove arg0)Implements net. net. from the Cache.
|
| public boolean | remove(Serializable
the key of the element to remove arg0)Implements net. net. from the Cache.
|
| public boolean | remove(Object
of the element to remove arg0, boolean whether the put is coming from a doNotNotifyCacheReplicators cache peer, in which case this put should not initiate a
further notification to doNotNotifyCacheReplicators cache peers arg1)Implements net. net. from the Cache.
|
| public void | removeAll(boolean
whether the put is coming from a doNotNotifyCacheReplicators cache peer,
in which case this put should not initiate a further notification to doNotNotifyCacheReplicators cache peers arg0)Implements net. |
| public void | |
| public void | removeAll(Collection<E>
a collection of keys to operate on arg0, boolean whether the put is coming from a doNotNotifyCacheReplicators cache peer,
in which case this put should not initiate a further notification to doNotNotifyCacheReplicators cache peers arg1)Implements net. |
| public void | removeAll(Collection<E>
a collection of keys to operate on arg0)Implements net. net. from the Cache.
|
| public boolean | removeElement(Element
Element to be removed arg0)Implements net. |
| public void | removePropertyChangeListener(PropertyChangeListener
the listener to remove arg0)Implements net. |
| public boolean | removeQuiet(Serializable
of the element to remove arg0)Implements net. net. from the Cache, without notifying listeners.
|
| public boolean | removeQuiet(Object
of the element to remove arg0)Implements net. net. from the Cache, without notifying listeners.
|
| public boolean | removeWithWriter(Object
of the element to remove arg0)Implements net. net. from the Cache and any stores it might be in. This also removes through
to a CacheWriter.
|
| public Element | replace(Element
Element to be cached arg0)Implements net. |
| public boolean | replace(Element
Element to be test against arg0, Element Element to be cached arg1)Implements net. |
| public void | setBootstrapCacheLoader(BootstrapCacheLoader
the loader to be used arg0)Implements net. |
| public void | setCacheExceptionHandler(CacheExceptionHandler
the cache exception handler arg0)Implements net. |
| public void | setCacheManager(CacheManager
the CacheManager for this cache to use. arg0)Implements net. |
| public void | setDisabled(boolean
true if you wish to disable, false to enable arg0)Implements net. |
| public void | setName(String
the name of the cache. Should not be null. arg0)Implements net. |
| public void | setNodeBulkLoadEnabled(boolean
true enables bulk-load, false disables it if not already disabled arg0)Implements net. |
| public void | setNodeCoherent(boolean
true transitions to coherent mode, false to incoherent mode arg0)Implements net. |
| public void | setTransactionManagerLookup(TransactionManagerLookup
the transactionManagerLookup arg0)Implements net. |
| public String | toString()
Overrides java. Implements net. String representation of net..
|
| public boolean | tryReadLockOnKey(Object
- The key that retrieves a value that you want to protect via locking arg0, long - millis until giveup on getting the lock arg1)Implements net. |
| public boolean | tryWriteLockOnKey(Object
- The key that retrieves a value that you want to protect via locking arg0, long - millis until giveup on getting the lock arg1)Implements net. |
| public void | unregisterCacheExtension(CacheExtension
the cache extension arg0)Implements net. CacheExtension with the cache.
|
| public void | unregisterCacheLoader(CacheLoader
A Cache Loader to unregister arg0)Implements net. CacheLoader with the cache.
|
| public void | unregisterCacheWriter()
Implements net. CacheWriter from the cache.
|
| public void | waitUntilClusterBulkLoadComplete()
Implements net. |
| public void | waitUntilClusterCoherent()
Implements net. |