com.liferay.portal.cache.ehcache
Class ModifiableEhcacheWrapper
java.lang.Object
com.liferay.portal.cache.ehcache.ModifiableEhcacheWrapper
- All Implemented Interfaces:
- Cloneable, net.sf.ehcache.Ehcache
public class ModifiableEhcacheWrapper
- extends Object
- implements net.sf.ehcache.Ehcache
|
Method Summary |
void |
acquireReadLockOnKey(Object key)
|
void |
acquireWriteLockOnKey(Object key)
|
void |
addPropertyChangeListener(PropertyChangeListener propertyChangeListener)
|
void |
addReference()
|
void |
bootstrap()
|
long |
calculateInMemorySize()
|
long |
calculateOffHeapSize()
|
void |
clearStatistics()
|
Object |
clone()
|
net.sf.ehcache.search.Query |
createQuery()
|
void |
disableDynamicFeatures()
|
void |
dispose()
|
boolean |
equals(Object object)
|
void |
evictExpiredElements()
|
void |
flush()
|
net.sf.ehcache.Element |
get(Object key)
|
net.sf.ehcache.Element |
get(Serializable key)
|
int |
getActiveReferenceCount()
|
Map |
getAllWithLoader(Collection keys,
Object argument)
|
float |
getAverageGetTime()
|
long |
getAverageSearchTime()
|
net.sf.ehcache.bootstrap.BootstrapCacheLoader |
getBootstrapCacheLoader()
|
net.sf.ehcache.config.CacheConfiguration |
getCacheConfiguration()
|
net.sf.ehcache.event.RegisteredEventListeners |
getCacheEventNotificationService()
|
net.sf.ehcache.exceptionhandler.CacheExceptionHandler |
getCacheExceptionHandler()
|
net.sf.ehcache.CacheManager |
getCacheManager()
|
int |
getDiskStoreSize()
|
String |
getGuid()
|
Object |
getInternalContext()
|
List |
getKeys()
|
List |
getKeysNoDuplicateCheck()
|
List |
getKeysWithExpiryCheck()
|
net.sf.ehcache.statistics.LiveCacheStatistics |
getLiveCacheStatistics()
|
long |
getMemoryStoreSize()
|
String |
getName()
|
long |
getOffHeapStoreSize()
|
net.sf.ehcache.Element |
getQuiet(Object key)
|
net.sf.ehcache.Element |
getQuiet(Serializable key)
|
List<net.sf.ehcache.extension.CacheExtension> |
getRegisteredCacheExtensions()
|
List<net.sf.ehcache.loader.CacheLoader> |
getRegisteredCacheLoaders()
|
net.sf.ehcache.writer.CacheWriter |
getRegisteredCacheWriter()
|
net.sf.ehcache.statistics.sampled.SampledCacheStatistics |
getSampledCacheStatistics()
|
<T> net.sf.ehcache.search.Attribute<T> |
|
getSearchAttribute(String attributeName)
|
long |
getSearchesPerSecond()
|
int |
getSize()
|
int |
getSizeBasedOnAccuracy(int statisticsAccuracy)
|
net.sf.ehcache.Statistics |
getStatistics()
|
int |
getStatisticsAccuracy()
|
net.sf.ehcache.Status |
getStatus()
|
net.sf.ehcache.Element |
getWithLoader(Object key,
net.sf.ehcache.loader.CacheLoader cacheLoader,
Object argument)
|
net.sf.ehcache.Ehcache |
getWrappedCache()
|
net.sf.ehcache.writer.CacheWriterManager |
getWriterManager()
|
int |
hashCode()
|
void |
initialise()
|
boolean |
isClusterBulkLoadEnabled()
|
boolean |
isClusterCoherent()
Deprecated. As of 6.1.0 |
boolean |
isDisabled()
|
boolean |
isElementInMemory(Object key)
|
boolean |
isElementInMemory(Serializable key)
|
boolean |
isElementOnDisk(Object key)
|
boolean |
isElementOnDisk(Serializable key)
|
boolean |
isExpired(net.sf.ehcache.Element element)
|
boolean |
isKeyInCache(Object key)
|
boolean |
isNodeBulkLoadEnabled()
|
boolean |
isNodeCoherent()
Deprecated. As of 6.1.0 |
boolean |
isReadLockedByCurrentThread(Object key)
|
boolean |
isSampledStatisticsEnabled()
|
boolean |
isSearchable()
|
boolean |
isStatisticsEnabled()
|
protected boolean |
isStatusAlive()
|
boolean |
isValueInCache(Object value)
|
boolean |
isWriteLockedByCurrentThread(Object key)
|
void |
load(Object key)
|
void |
loadAll(Collection keys,
Object argument)
|
void |
put(net.sf.ehcache.Element element)
|
void |
put(net.sf.ehcache.Element element,
boolean doNotNotifyCacheReplicators)
|
net.sf.ehcache.Element |
putIfAbsent(net.sf.ehcache.Element element)
|
void |
putQuiet(net.sf.ehcache.Element element)
|
void |
putWithWriter(net.sf.ehcache.Element element)
|
void |
registerCacheExtension(net.sf.ehcache.extension.CacheExtension cacheExtension)
|
void |
registerCacheLoader(net.sf.ehcache.loader.CacheLoader cacheLoader)
|
void |
registerCacheUsageListener(net.sf.ehcache.statistics.CacheUsageListener cacheUsageListener)
|
void |
registerCacheWriter(net.sf.ehcache.writer.CacheWriter cacheWriter)
|
void |
releaseReadLockOnKey(Object key)
|
void |
releaseWriteLockOnKey(Object key)
|
boolean |
remove(Object key)
|
boolean |
remove(Object key,
boolean doNotNotifyCacheReplicators)
|
boolean |
remove(Serializable key)
|
boolean |
remove(Serializable key,
boolean doNotNotifyCacheReplicators)
|
void |
removeAll()
|
void |
removeAll(boolean doNotNotifyCacheReplicators)
|
void |
removeCacheUsageListener(net.sf.ehcache.statistics.CacheUsageListener cacheUsageListener)
|
boolean |
removeElement(net.sf.ehcache.Element element)
|
void |
removePropertyChangeListener(PropertyChangeListener propertyChangeListener)
|
boolean |
removeQuiet(Object key)
|
boolean |
removeQuiet(Serializable key)
|
void |
removeReference()
|
boolean |
removeWithWriter(Object key)
|
net.sf.ehcache.Element |
replace(net.sf.ehcache.Element element)
|
boolean |
replace(net.sf.ehcache.Element oldElement,
net.sf.ehcache.Element newElement)
|
void |
setBootstrapCacheLoader(net.sf.ehcache.bootstrap.BootstrapCacheLoader bootstrapCacheLoader)
|
void |
setCacheExceptionHandler(net.sf.ehcache.exceptionhandler.CacheExceptionHandler cacheExceptionHandler)
|
void |
setCacheManager(net.sf.ehcache.CacheManager cacheManager)
|
void |
setDisabled(boolean disabled)
|
void |
setDiskStorePath(String diskStorePath)
|
void |
setName(String name)
|
void |
setNodeBulkLoadEnabled(boolean enabledBulkLoad)
|
void |
setNodeCoherent(boolean nodeCoherent)
Deprecated. As of 6.1.0 |
void |
setSampledStatisticsEnabled(boolean sampleStatisticsEnabled)
|
void |
setStatisticsAccuracy(int statisticsAccuracy)
|
void |
setStatisticsEnabled(boolean statisticsEnabled)
|
void |
setTransactionManagerLookup(net.sf.ehcache.transaction.manager.TransactionManagerLookup transactionManagerLookup)
|
void |
setWrappedCache(net.sf.ehcache.Ehcache ehcache)
|
boolean |
tryReadLockOnKey(Object key,
long timeout)
|
boolean |
tryWriteLockOnKey(Object key,
long timeout)
|
void |
unregisterCacheExtension(net.sf.ehcache.extension.CacheExtension cacheExtension)
|
void |
unregisterCacheLoader(net.sf.ehcache.loader.CacheLoader cacheLoader)
|
void |
unregisterCacheWriter()
|
void |
waitUntilClusterBulkLoadComplete()
|
void |
waitUntilClusterCoherent()
Deprecated. As of 6.1.0 |
| Methods inherited from interface net.sf.ehcache.Ehcache |
toString |
ModifiableEhcacheWrapper
public ModifiableEhcacheWrapper(net.sf.ehcache.Ehcache ehcache)
acquireReadLockOnKey
public void acquireReadLockOnKey(Object key)
- Specified by:
acquireReadLockOnKey in interface net.sf.ehcache.Ehcache
acquireWriteLockOnKey
public void acquireWriteLockOnKey(Object key)
- Specified by:
acquireWriteLockOnKey in interface net.sf.ehcache.Ehcache
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener propertyChangeListener)
- Specified by:
addPropertyChangeListener in interface net.sf.ehcache.Ehcache
addReference
public void addReference()
bootstrap
public void bootstrap()
- Specified by:
bootstrap in interface net.sf.ehcache.Ehcache
calculateInMemorySize
public long calculateInMemorySize()
throws net.sf.ehcache.CacheException,
IllegalStateException
- Specified by:
calculateInMemorySize in interface net.sf.ehcache.Ehcache
- Throws:
net.sf.ehcache.CacheException
IllegalStateException
calculateOffHeapSize
public long calculateOffHeapSize()
throws net.sf.ehcache.CacheException,
IllegalStateException
- Specified by:
calculateOffHeapSize in interface net.sf.ehcache.Ehcache
- Throws:
net.sf.ehcache.CacheException
IllegalStateException
clearStatistics
public void clearStatistics()
- Specified by:
clearStatistics in interface net.sf.ehcache.Ehcache
clone
public Object clone()
throws CloneNotSupportedException
- Specified by:
clone in interface net.sf.ehcache.Ehcache- Overrides:
clone in class Object
- Throws:
CloneNotSupportedException
createQuery
public net.sf.ehcache.search.Query createQuery()
- Specified by:
createQuery in interface net.sf.ehcache.Ehcache
disableDynamicFeatures
public void disableDynamicFeatures()
- Specified by:
disableDynamicFeatures in interface net.sf.ehcache.Ehcache
dispose
public void dispose()
throws IllegalStateException
- Specified by:
dispose in interface net.sf.ehcache.Ehcache
- Throws:
IllegalStateException
equals
public boolean equals(Object object)
- Overrides:
equals in class Object
evictExpiredElements
public void evictExpiredElements()
- Specified by:
evictExpiredElements in interface net.sf.ehcache.Ehcache
flush
public void flush()
throws net.sf.ehcache.CacheException,
IllegalStateException
- Specified by:
flush in interface net.sf.ehcache.Ehcache
- Throws:
net.sf.ehcache.CacheException
IllegalStateException
get
public net.sf.ehcache.Element get(Object key)
throws net.sf.ehcache.CacheException,
IllegalStateException
- Specified by:
get in interface net.sf.ehcache.Ehcache
- Throws:
net.sf.ehcache.CacheException
IllegalStateException
get
public net.sf.ehcache.Element get(Serializable key)
throws net.sf.ehcache.CacheException,
IllegalStateException
- Specified by:
get in interface net.sf.ehcache.Ehcache
- Throws:
net.sf.ehcache.CacheException
IllegalStateException
getActiveReferenceCount
public int getActiveReferenceCount()
getAllWithLoader
public Map getAllWithLoader(Collection keys,
Object argument)
throws net.sf.ehcache.CacheException
- Specified by:
getAllWithLoader in interface net.sf.ehcache.Ehcache
- Throws:
net.sf.ehcache.CacheException
getAverageGetTime
public float getAverageGetTime()
- Specified by:
getAverageGetTime in interface net.sf.ehcache.Ehcache
getAverageSearchTime
public long getAverageSearchTime()
- Specified by:
getAverageSearchTime in interface net.sf.ehcache.Ehcache
getBootstrapCacheLoader
public net.sf.ehcache.bootstrap.BootstrapCacheLoader getBootstrapCacheLoader()
- Specified by:
getBootstrapCacheLoader in interface net.sf.ehcache.Ehcache
getCacheConfiguration
public net.sf.ehcache.config.CacheConfiguration getCacheConfiguration()
- Specified by:
getCacheConfiguration in interface net.sf.ehcache.Ehcache
getCacheEventNotificationService
public net.sf.ehcache.event.RegisteredEventListeners getCacheEventNotificationService()
- Specified by:
getCacheEventNotificationService in interface net.sf.ehcache.Ehcache
getCacheExceptionHandler
public net.sf.ehcache.exceptionhandler.CacheExceptionHandler getCacheExceptionHandler()
- Specified by:
getCacheExceptionHandler in interface net.sf.ehcache.Ehcache
getCacheManager
public net.sf.ehcache.CacheManager getCacheManager()
- Specified by:
getCacheManager in interface net.sf.ehcache.Ehcache
getDiskStoreSize
public int getDiskStoreSize()
throws IllegalStateException
- Specified by:
getDiskStoreSize in interface net.sf.ehcache.Ehcache
- Throws:
IllegalStateException
getGuid
public String getGuid()
- Specified by:
getGuid in interface net.sf.ehcache.Ehcache
getInternalContext
public Object getInternalContext()
- Specified by:
getInternalContext in interface net.sf.ehcache.Ehcache
getKeys
public List getKeys()
throws net.sf.ehcache.CacheException,
IllegalStateException
- Specified by:
getKeys in interface net.sf.ehcache.Ehcache
- Throws:
net.sf.ehcache.CacheException
IllegalStateException
getKeysNoDuplicateCheck
public List getKeysNoDuplicateCheck()
throws IllegalStateException
- Specified by:
getKeysNoDuplicateCheck in interface net.sf.ehcache.Ehcache
- Throws:
IllegalStateException
getKeysWithExpiryCheck
public List getKeysWithExpiryCheck()
throws net.sf.ehcache.CacheException,
IllegalStateException
- Specified by:
getKeysWithExpiryCheck in interface net.sf.ehcache.Ehcache
- Throws:
net.sf.ehcache.CacheException
IllegalStateException
getLiveCacheStatistics
public net.sf.ehcache.statistics.LiveCacheStatistics getLiveCacheStatistics()
throws IllegalStateException
- Specified by:
getLiveCacheStatistics in interface net.sf.ehcache.Ehcache
- Throws:
IllegalStateException
getMemoryStoreSize
public long getMemoryStoreSize()
throws IllegalStateException
- Specified by:
getMemoryStoreSize in interface net.sf.ehcache.Ehcache
- Throws:
IllegalStateException
getName
public String getName()
- Specified by:
getName in interface net.sf.ehcache.Ehcache
getOffHeapStoreSize
public long getOffHeapStoreSize()
throws IllegalStateException
- Specified by:
getOffHeapStoreSize in interface net.sf.ehcache.Ehcache
- Throws:
IllegalStateException
getQuiet
public net.sf.ehcache.Element getQuiet(Object key)
throws net.sf.ehcache.CacheException,
IllegalStateException
- Specified by:
getQuiet in interface net.sf.ehcache.Ehcache
- Throws:
net.sf.ehcache.CacheException
IllegalStateException
getQuiet
public net.sf.ehcache.Element getQuiet(Serializable key)
throws net.sf.ehcache.CacheException,
IllegalStateException
- Specified by:
getQuiet in interface net.sf.ehcache.Ehcache
- Throws:
net.sf.ehcache.CacheException
IllegalStateException
getRegisteredCacheExtensions
public List<net.sf.ehcache.extension.CacheExtension> getRegisteredCacheExtensions()
- Specified by:
getRegisteredCacheExtensions in interface net.sf.ehcache.Ehcache
getRegisteredCacheLoaders
public List<net.sf.ehcache.loader.CacheLoader> getRegisteredCacheLoaders()
- Specified by:
getRegisteredCacheLoaders in interface net.sf.ehcache.Ehcache
getRegisteredCacheWriter
public net.sf.ehcache.writer.CacheWriter getRegisteredCacheWriter()
- Specified by:
getRegisteredCacheWriter in interface net.sf.ehcache.Ehcache
getSampledCacheStatistics
public net.sf.ehcache.statistics.sampled.SampledCacheStatistics getSampledCacheStatistics()
- Specified by:
getSampledCacheStatistics in interface net.sf.ehcache.Ehcache
getSearchAttribute
public <T> net.sf.ehcache.search.Attribute<T> getSearchAttribute(String attributeName)
throws net.sf.ehcache.CacheException
- Specified by:
getSearchAttribute in interface net.sf.ehcache.Ehcache
- Throws:
net.sf.ehcache.CacheException
getSearchesPerSecond
public long getSearchesPerSecond()
- Specified by:
getSearchesPerSecond in interface net.sf.ehcache.Ehcache
getSize
public int getSize()
throws net.sf.ehcache.CacheException,
IllegalStateException
- Specified by:
getSize in interface net.sf.ehcache.Ehcache
- Throws:
net.sf.ehcache.CacheException
IllegalStateException
getSizeBasedOnAccuracy
public int getSizeBasedOnAccuracy(int statisticsAccuracy)
throws net.sf.ehcache.CacheException,
IllegalArgumentException,
IllegalStateException
- Specified by:
getSizeBasedOnAccuracy in interface net.sf.ehcache.Ehcache
- Throws:
net.sf.ehcache.CacheException
IllegalArgumentException
IllegalStateException
getStatistics
public net.sf.ehcache.Statistics getStatistics()
throws IllegalStateException
- Specified by:
getStatistics in interface net.sf.ehcache.Ehcache
- Throws:
IllegalStateException
getStatisticsAccuracy
public int getStatisticsAccuracy()
- Specified by:
getStatisticsAccuracy in interface net.sf.ehcache.Ehcache
getStatus
public net.sf.ehcache.Status getStatus()
- Specified by:
getStatus in interface net.sf.ehcache.Ehcache
getWithLoader
public net.sf.ehcache.Element getWithLoader(Object key,
net.sf.ehcache.loader.CacheLoader cacheLoader,
Object argument)
throws net.sf.ehcache.CacheException
- Specified by:
getWithLoader in interface net.sf.ehcache.Ehcache
- Throws:
net.sf.ehcache.CacheException
getWrappedCache
public net.sf.ehcache.Ehcache getWrappedCache()
getWriterManager
public net.sf.ehcache.writer.CacheWriterManager getWriterManager()
- Specified by:
getWriterManager in interface net.sf.ehcache.Ehcache
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
initialise
public void initialise()
- Specified by:
initialise in interface net.sf.ehcache.Ehcache
isClusterBulkLoadEnabled
public boolean isClusterBulkLoadEnabled()
throws net.sf.ehcache.terracotta.TerracottaNotRunningException,
UnsupportedOperationException
- Specified by:
isClusterBulkLoadEnabled in interface net.sf.ehcache.Ehcache
- Throws:
net.sf.ehcache.terracotta.TerracottaNotRunningException
UnsupportedOperationException
isClusterCoherent
public boolean isClusterCoherent()
- Deprecated. As of 6.1.0
- Specified by:
isClusterCoherent in interface net.sf.ehcache.Ehcache
isDisabled
public boolean isDisabled()
- Specified by:
isDisabled in interface net.sf.ehcache.Ehcache
isElementInMemory
public boolean isElementInMemory(Object key)
- Specified by:
isElementInMemory in interface net.sf.ehcache.Ehcache
isElementInMemory
public boolean isElementInMemory(Serializable key)
- Specified by:
isElementInMemory in interface net.sf.ehcache.Ehcache
isElementOnDisk
public boolean isElementOnDisk(Object key)
- Specified by:
isElementOnDisk in interface net.sf.ehcache.Ehcache
isElementOnDisk
public boolean isElementOnDisk(Serializable key)
- Specified by:
isElementOnDisk in interface net.sf.ehcache.Ehcache
isExpired
public boolean isExpired(net.sf.ehcache.Element element)
throws IllegalStateException,
NullPointerException
- Specified by:
isExpired in interface net.sf.ehcache.Ehcache
- Throws:
IllegalStateException
NullPointerException
isKeyInCache
public boolean isKeyInCache(Object key)
- Specified by:
isKeyInCache in interface net.sf.ehcache.Ehcache
isNodeBulkLoadEnabled
public boolean isNodeBulkLoadEnabled()
throws net.sf.ehcache.terracotta.TerracottaNotRunningException,
UnsupportedOperationException
- Specified by:
isNodeBulkLoadEnabled in interface net.sf.ehcache.Ehcache
- Throws:
net.sf.ehcache.terracotta.TerracottaNotRunningException
UnsupportedOperationException
isNodeCoherent
public boolean isNodeCoherent()
- Deprecated. As of 6.1.0
- Specified by:
isNodeCoherent in interface net.sf.ehcache.Ehcache
isReadLockedByCurrentThread
public boolean isReadLockedByCurrentThread(Object key)
- Specified by:
isReadLockedByCurrentThread in interface net.sf.ehcache.Ehcache
isSampledStatisticsEnabled
public boolean isSampledStatisticsEnabled()
- Specified by:
isSampledStatisticsEnabled in interface net.sf.ehcache.Ehcache
isSearchable
public boolean isSearchable()
- Specified by:
isSearchable in interface net.sf.ehcache.Ehcache
isStatisticsEnabled
public boolean isStatisticsEnabled()
- Specified by:
isStatisticsEnabled in interface net.sf.ehcache.Ehcache
isValueInCache
public boolean isValueInCache(Object value)
- Specified by:
isValueInCache in interface net.sf.ehcache.Ehcache
isWriteLockedByCurrentThread
public boolean isWriteLockedByCurrentThread(Object key)
- Specified by:
isWriteLockedByCurrentThread in interface net.sf.ehcache.Ehcache
load
public void load(Object key)
throws net.sf.ehcache.CacheException
- Specified by:
load in interface net.sf.ehcache.Ehcache
- Throws:
net.sf.ehcache.CacheException
loadAll
public void loadAll(Collection keys,
Object argument)
throws net.sf.ehcache.CacheException
- Specified by:
loadAll in interface net.sf.ehcache.Ehcache
- Throws:
net.sf.ehcache.CacheException
put
public void put(net.sf.ehcache.Element element)
throws net.sf.ehcache.CacheException,
IllegalArgumentException,
IllegalStateException
- Specified by:
put in interface net.sf.ehcache.Ehcache
- Throws:
net.sf.ehcache.CacheException
IllegalArgumentException
IllegalStateException
put
public void put(net.sf.ehcache.Element element,
boolean doNotNotifyCacheReplicators)
throws net.sf.ehcache.CacheException,
IllegalArgumentException,
IllegalStateException
- Specified by:
put in interface net.sf.ehcache.Ehcache
- Throws:
net.sf.ehcache.CacheException
IllegalArgumentException
IllegalStateException
putIfAbsent
public net.sf.ehcache.Element putIfAbsent(net.sf.ehcache.Element element)
throws NullPointerException
- Specified by:
putIfAbsent in interface net.sf.ehcache.Ehcache
- Throws:
NullPointerException
putQuiet
public void putQuiet(net.sf.ehcache.Element element)
throws net.sf.ehcache.CacheException,
IllegalArgumentException,
IllegalStateException
- Specified by:
putQuiet in interface net.sf.ehcache.Ehcache
- Throws:
net.sf.ehcache.CacheException
IllegalArgumentException
IllegalStateException
putWithWriter
public void putWithWriter(net.sf.ehcache.Element element)
throws net.sf.ehcache.CacheException,
IllegalArgumentException,
IllegalStateException
- Specified by:
putWithWriter in interface net.sf.ehcache.Ehcache
- Throws:
net.sf.ehcache.CacheException
IllegalArgumentException
IllegalStateException
registerCacheExtension
public void registerCacheExtension(net.sf.ehcache.extension.CacheExtension cacheExtension)
- Specified by:
registerCacheExtension in interface net.sf.ehcache.Ehcache
registerCacheLoader
public void registerCacheLoader(net.sf.ehcache.loader.CacheLoader cacheLoader)
- Specified by:
registerCacheLoader in interface net.sf.ehcache.Ehcache
registerCacheUsageListener
public void registerCacheUsageListener(net.sf.ehcache.statistics.CacheUsageListener cacheUsageListener)
throws IllegalStateException
- Specified by:
registerCacheUsageListener in interface net.sf.ehcache.Ehcache
- Throws:
IllegalStateException
registerCacheWriter
public void registerCacheWriter(net.sf.ehcache.writer.CacheWriter cacheWriter)
- Specified by:
registerCacheWriter in interface net.sf.ehcache.Ehcache
releaseReadLockOnKey
public void releaseReadLockOnKey(Object key)
- Specified by:
releaseReadLockOnKey in interface net.sf.ehcache.Ehcache
releaseWriteLockOnKey
public void releaseWriteLockOnKey(Object key)
- Specified by:
releaseWriteLockOnKey in interface net.sf.ehcache.Ehcache
remove
public boolean remove(Object key)
throws IllegalStateException
- Specified by:
remove in interface net.sf.ehcache.Ehcache
- Throws:
IllegalStateException
remove
public boolean remove(Object key,
boolean doNotNotifyCacheReplicators)
throws IllegalStateException
- Specified by:
remove in interface net.sf.ehcache.Ehcache
- Throws:
IllegalStateException
remove
public boolean remove(Serializable key)
throws IllegalStateException
- Specified by:
remove in interface net.sf.ehcache.Ehcache
- Throws:
IllegalStateException
remove
public boolean remove(Serializable key,
boolean doNotNotifyCacheReplicators)
throws IllegalStateException
- Specified by:
remove in interface net.sf.ehcache.Ehcache
- Throws:
IllegalStateException
removeAll
public void removeAll()
throws net.sf.ehcache.CacheException,
IllegalStateException
- Specified by:
removeAll in interface net.sf.ehcache.Ehcache
- Throws:
net.sf.ehcache.CacheException
IllegalStateException
removeAll
public void removeAll(boolean doNotNotifyCacheReplicators)
throws net.sf.ehcache.CacheException,
IllegalStateException
- Specified by:
removeAll in interface net.sf.ehcache.Ehcache
- Throws:
net.sf.ehcache.CacheException
IllegalStateException
removeCacheUsageListener
public void removeCacheUsageListener(net.sf.ehcache.statistics.CacheUsageListener cacheUsageListener)
throws IllegalStateException
- Specified by:
removeCacheUsageListener in interface net.sf.ehcache.Ehcache
- Throws:
IllegalStateException
removeElement
public boolean removeElement(net.sf.ehcache.Element element)
throws NullPointerException
- Specified by:
removeElement in interface net.sf.ehcache.Ehcache
- Throws:
NullPointerException
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener propertyChangeListener)
- Specified by:
removePropertyChangeListener in interface net.sf.ehcache.Ehcache
removeQuiet
public boolean removeQuiet(Object key)
throws IllegalStateException
- Specified by:
removeQuiet in interface net.sf.ehcache.Ehcache
- Throws:
IllegalStateException
removeQuiet
public boolean removeQuiet(Serializable key)
throws IllegalStateException
- Specified by:
removeQuiet in interface net.sf.ehcache.Ehcache
- Throws:
IllegalStateException
removeReference
public void removeReference()
removeWithWriter
public boolean removeWithWriter(Object key)
throws net.sf.ehcache.CacheException,
IllegalStateException
- Specified by:
removeWithWriter in interface net.sf.ehcache.Ehcache
- Throws:
net.sf.ehcache.CacheException
IllegalStateException
replace
public net.sf.ehcache.Element replace(net.sf.ehcache.Element element)
throws NullPointerException
- Specified by:
replace in interface net.sf.ehcache.Ehcache
- Throws:
NullPointerException
replace
public boolean replace(net.sf.ehcache.Element oldElement,
net.sf.ehcache.Element newElement)
throws IllegalArgumentException,
NullPointerException
- Specified by:
replace in interface net.sf.ehcache.Ehcache
- Throws:
IllegalArgumentException
NullPointerException
setBootstrapCacheLoader
public void setBootstrapCacheLoader(net.sf.ehcache.bootstrap.BootstrapCacheLoader bootstrapCacheLoader)
throws net.sf.ehcache.CacheException
- Specified by:
setBootstrapCacheLoader in interface net.sf.ehcache.Ehcache
- Throws:
net.sf.ehcache.CacheException
setCacheExceptionHandler
public void setCacheExceptionHandler(net.sf.ehcache.exceptionhandler.CacheExceptionHandler cacheExceptionHandler)
- Specified by:
setCacheExceptionHandler in interface net.sf.ehcache.Ehcache
setCacheManager
public void setCacheManager(net.sf.ehcache.CacheManager cacheManager)
- Specified by:
setCacheManager in interface net.sf.ehcache.Ehcache
setDisabled
public void setDisabled(boolean disabled)
- Specified by:
setDisabled in interface net.sf.ehcache.Ehcache
setDiskStorePath
public void setDiskStorePath(String diskStorePath)
throws net.sf.ehcache.CacheException
- Specified by:
setDiskStorePath in interface net.sf.ehcache.Ehcache
- Throws:
net.sf.ehcache.CacheException
setName
public void setName(String name)
- Specified by:
setName in interface net.sf.ehcache.Ehcache
setNodeBulkLoadEnabled
public void setNodeBulkLoadEnabled(boolean enabledBulkLoad)
throws net.sf.ehcache.terracotta.TerracottaNotRunningException,
UnsupportedOperationException
- Specified by:
setNodeBulkLoadEnabled in interface net.sf.ehcache.Ehcache
- Throws:
net.sf.ehcache.terracotta.TerracottaNotRunningException
UnsupportedOperationException
setNodeCoherent
public void setNodeCoherent(boolean nodeCoherent)
throws UnsupportedOperationException
- Deprecated. As of 6.1.0
- Specified by:
setNodeCoherent in interface net.sf.ehcache.Ehcache
- Throws:
UnsupportedOperationException
setSampledStatisticsEnabled
public void setSampledStatisticsEnabled(boolean sampleStatisticsEnabled)
- Specified by:
setSampledStatisticsEnabled in interface net.sf.ehcache.Ehcache
setStatisticsAccuracy
public void setStatisticsAccuracy(int statisticsAccuracy)
- Specified by:
setStatisticsAccuracy in interface net.sf.ehcache.Ehcache
setStatisticsEnabled
public void setStatisticsEnabled(boolean statisticsEnabled)
- Specified by:
setStatisticsEnabled in interface net.sf.ehcache.Ehcache
setTransactionManagerLookup
public void setTransactionManagerLookup(net.sf.ehcache.transaction.manager.TransactionManagerLookup transactionManagerLookup)
- Specified by:
setTransactionManagerLookup in interface net.sf.ehcache.Ehcache
setWrappedCache
public void setWrappedCache(net.sf.ehcache.Ehcache ehcache)
tryReadLockOnKey
public boolean tryReadLockOnKey(Object key,
long timeout)
throws InterruptedException
- Specified by:
tryReadLockOnKey in interface net.sf.ehcache.Ehcache
- Throws:
InterruptedException
tryWriteLockOnKey
public boolean tryWriteLockOnKey(Object key,
long timeout)
throws InterruptedException
- Specified by:
tryWriteLockOnKey in interface net.sf.ehcache.Ehcache
- Throws:
InterruptedException
unregisterCacheExtension
public void unregisterCacheExtension(net.sf.ehcache.extension.CacheExtension cacheExtension)
- Specified by:
unregisterCacheExtension in interface net.sf.ehcache.Ehcache
unregisterCacheLoader
public void unregisterCacheLoader(net.sf.ehcache.loader.CacheLoader cacheLoader)
- Specified by:
unregisterCacheLoader in interface net.sf.ehcache.Ehcache
unregisterCacheWriter
public void unregisterCacheWriter()
- Specified by:
unregisterCacheWriter in interface net.sf.ehcache.Ehcache
waitUntilClusterBulkLoadComplete
public void waitUntilClusterBulkLoadComplete()
throws net.sf.ehcache.terracotta.TerracottaNotRunningException,
UnsupportedOperationException
- Specified by:
waitUntilClusterBulkLoadComplete in interface net.sf.ehcache.Ehcache
- Throws:
net.sf.ehcache.terracotta.TerracottaNotRunningException
UnsupportedOperationException
waitUntilClusterCoherent
public void waitUntilClusterCoherent()
throws UnsupportedOperationException
- Deprecated. As of 6.1.0
- Specified by:
waitUntilClusterCoherent in interface net.sf.ehcache.Ehcache
- Throws:
UnsupportedOperationException
isStatusAlive
protected boolean isStatusAlive()