Ehcache by delegating all calls to the decorated
Ehcache. This class is provided as a convenience for easily creating Ehcache decorators by extending this class and
overriding only the methods of interest.
| Modifier and Type | Field and Description |
|---|---|
| protected final Ehcache | underlyingCache
The decorated |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | acquireReadLockOnKey(Object
- The key that retrieves a value that you want to protect via locking key)Implements net. |
| public void | acquireWriteLockOnKey(Object
- The key that retrieves a value that you want to protect via locking key)Implements net. |
| public void | addPropertyChangeListener(PropertyChangeListener
the listener to add listener)Implements net. |
| private InternalEhcache | |
| 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 key)Implements net. |
| public Element | get(Serializable
a serializable value key)Implements net. |
| public Map | getAll(Collection<?>
a collection of keys for which value is to be fetched keys)Implements net. |
| public Map | getAllWithLoader(Collection<E>
a collection of keys to be returned/loaded keys, Object an argument to pass to the CacheLoader. loaderArgument)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(Object
a serializable value key)Implements net. |
| public Element | getQuiet(Serializable
a serializable value key)Implements net. |
| public List | |
| public List | |
| public CacheWriter | getRegisteredCacheWriter()
Implements net. CacheWriter that was registered for this cache.
|
| public <T> Attribute | getSearchAttribute(String
the name of the attribute to retrieve attributeName)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. key, CacheLoader the override loader to use. If null, the cache's default loader will be used loader, Object an argument to pass to the CacheLoader. loaderArgument)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.
Deprecated
Use
Returns true if the cache is in coherent mode cluster-wide.
isClusterBulkLoadEnabled() instead
|
| public boolean | |
| public boolean | isElementInMemory(Object
the key of the element to remove key)Implements net. |
| public boolean | isElementInMemory(Serializable
the key of the element to remove key)Implements net. |
| public boolean | isElementOnDisk(Object
the key of the element to remove key)Implements net. |
| public boolean | isElementOnDisk(Serializable
the key of the element to remove key)Implements net. |
| public boolean | isExpired(Element
the element to check element)Implements net. |
| public boolean | isKeyInCache(Object
the key to check for key)Implements net. |
| public boolean | isNodeBulkLoadEnabled()
Implements net. |
| public boolean | isNodeCoherent()
Implements net.
Deprecated
Use
Returns true if the cache is in coherent mode for the current node.
isNodeBulkLoadEnabled() instead
|
| public boolean | isReadLockedByCurrentThread(Object
the key key)Implements net. |
| public boolean | |
| public boolean | isValueInCache(Object
to check for value)Implements net. |
| public boolean | isWriteLockedByCurrentThread(Object
the key key)Implements net. |
| public void | load(Object
key whose associated value to be loaded using the associated cacheloader if this cache doesn't contain it. key)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. keys, Object can be anything that makes sense to the loader
argument)
The Ehcache native API provides similar functionality to loaders using the
decorator Implements net. |
| public void | put(Element
An object. If Serializable it can fully participate in replication and the DiskStore. element, 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 doNotNotifyCacheReplicators)Implements net. |
| public void | put(Element
An object. If Serializable it can fully participate in replication and the DiskStore. element)Implements net. |
| public void | putAll(Collection<Element>
the collection of elements to be put in the cache. elements)Implements net. |
| public Element | putIfAbsent(Element
element to be added element)Implements net. |
| public Element | putIfAbsent(final Element
element to be added element, final 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 doNotNotifyCacheReplicators)Implements net. |
| public void | putQuiet(Element
An object. If Serializable it can fully participate in replication and the DiskStore. element)Implements net. |
| public void | putWithWriter(Element
An object. If Serializable it can fully participate in replication and the DiskStore. element)Implements net. |
| public void | recalculateSize(Object
the key key)Implements net. |
| public void | registerCacheExtension(CacheExtension
the cache extension cacheExtension)Implements net. CacheExtension with the cache.
|
| public void | registerCacheLoader(CacheLoader
A Cache Loader to register cacheLoader)Implements net. CacheLoader with the cache.
|
| public void | registerCacheWriter(CacheWriter
A CacheWriter to register cacheWriter)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 key)Implements net. |
| public void | releaseWriteLockOnKey(Object
- The key that retrieves a value that you want to protect via locking key)Implements net. |
| public boolean | remove(Object
of the element to remove key, 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 doNotNotifyCacheReplicators)Implements net. net. from the Cache.
|
| public boolean | remove(Object
the key of the element to remove key)Implements net. net. from the Cache.
|
| public boolean | remove(Serializable
the key of the element to remove key, 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 doNotNotifyCacheReplicators)Implements net. net. from the Cache.
|
| public boolean | remove(Serializable
the key of the element to remove key)Implements net. net. from the Cache.
|
| public void | removeAll(Collection<?>
a collection of keys to operate on keys)Implements net. net. from the Cache.
|
| public void | removeAll(Collection<?>
a collection of keys to operate on keys, 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 doNotNotifyCacheReplicators)Implements net. |
| public void | |
| 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 doNotNotifyCacheReplicators)Implements net. |
| public Element | removeAndReturnElement(Object
the key of the element to operate on key)Implements net. |
| public boolean | removeElement(Element
Element to be removed element)Implements net. |
| public void | removePropertyChangeListener(PropertyChangeListener
the listener to remove listener)Implements net. |
| public boolean | removeQuiet(Object
of the element to remove key)Implements net. net. from the Cache, without notifying listeners.
|
| public boolean | removeQuiet(Serializable
of the element to remove key)Implements net. net. from the Cache, without notifying listeners.
|
| public boolean | removeWithWriter(Object
of the element to remove key)Implements net. net. from the Cache and any stores it might be in. This also removes through
to a CacheWriter.
|
| public boolean | replace(Element
Element to be test against old, Element Element to be cached element)Implements net. |
| public Element | replace(Element
Element to be cached element)Implements net. |
| public void | setBootstrapCacheLoader(BootstrapCacheLoader
the loader to be used bootstrapCacheLoader)Implements net. |
| public void | setCacheExceptionHandler(CacheExceptionHandler
the cache exception handler cacheExceptionHandler)Implements net. |
| public void | setCacheManager(CacheManager
the CacheManager for this cache to use. cacheManager)Implements net. |
| public void | setDisabled(boolean
true if you wish to disable, false to enable disabled)Implements net. |
| public void | setName(String
the name of the cache. Should not be null. name)Implements net. |
| public void | setNodeBulkLoadEnabled(boolean
true enables bulk-load, false disables it if not already disabled enabledBulkLoad)Implements net. |
| public void | setNodeCoherent(boolean
true transitions to coherent mode, false to incoherent mode coherent)Implements net.
Deprecated
Use
Sets the cache in coherent or incoherent mode depending on the parameter on this node.
setNodeBulkLoadEnabled(boolean) instead
|
| public void | setTransactionManagerLookup(TransactionManagerLookup
the transactionManagerLookup transactionManagerLookup)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 key, long - millis until giveup on getting the lock timeout)Implements net. |
| public boolean | tryWriteLockOnKey(Object
- The key that retrieves a value that you want to protect via locking key, long - millis until giveup on getting the lock timeout)Implements net. |
| public void | unregisterCacheExtension(CacheExtension
the cache extension cacheExtension)Implements net. CacheExtension with the cache.
|
| public void | unregisterCacheLoader(CacheLoader
A Cache Loader to unregister cacheLoader)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.
Deprecated
Use
This method waits until the cache is in coherent mode in all the connected nodes.
waitUntilClusterBulkLoadComplete() instead
|