|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ehcache.constructs.EhcacheDecoratorAdapter
net.sf.ehcache.constructs.blocking.BlockingCache
com.atlassian.cache.ehcache.LoadingCache<K,V>
K - the cache's key typeV - the cache's value typepublic class LoadingCache<K,V>
A rewrite of SelfPopulatingCache with stronger concurrency guarantees.
Unfortunately, since the locks are local and cache replication happens at the Ehcache layer,
bypassing these locks, this is still not good enough for clusters. It is, however,
an improvement.
| Field Summary |
|---|
| Fields inherited from class net.sf.ehcache.constructs.blocking.BlockingCache |
|---|
timeoutMillis |
| Fields inherited from class net.sf.ehcache.constructs.EhcacheDecoratorAdapter |
|---|
underlyingCache |
| Constructor Summary | |
|---|---|
LoadingCache(net.sf.ehcache.Ehcache cache,
CacheLoader<K,V> loader)
|
|
| Method Summary | |
|---|---|
net.sf.ehcache.Element |
get(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 |
removeAll(Collection<?> keys)
|
void |
removeAll(Collection<?> keys,
boolean doNotNotifyCacheReplicators)
|
| Methods inherited from class net.sf.ehcache.constructs.blocking.BlockingCache |
|---|
get, getAllWithLoader, getCache, getLockForKey, getTimeoutMillis, getWithLoader, liveness, load, loadAll, put, put, putIfAbsent, putIfAbsent, putQuiet, putWithWriter, registerCacheLoader, setTimeoutMillis, unregisterCacheLoader |
| Methods inherited from class net.sf.ehcache.constructs.EhcacheDecoratorAdapter |
|---|
acquireReadLockOnKey, acquireWriteLockOnKey, addPropertyChangeListener, bootstrap, calculateInMemorySize, calculateOffHeapSize, calculateOnDiskSize, clone, createQuery, disableDynamicFeatures, dispose, evictExpiredElements, flush, getAll, getBootstrapCacheLoader, getCacheConfiguration, getCacheEventNotificationService, getCacheExceptionHandler, getCacheManager, getDiskStoreSize, getGuid, getInternalContext, getKeys, getKeysNoDuplicateCheck, getKeysWithExpiryCheck, getMemoryStoreSize, getName, getOffHeapStoreSize, getQuiet, getQuiet, getRegisteredCacheExtensions, getRegisteredCacheLoaders, getRegisteredCacheWriter, getSearchAttribute, getSize, getStatistics, getStatus, getWriterManager, hasAbortedSizeOf, initialise, isClusterBulkLoadEnabled, isClusterCoherent, isDisabled, isElementInMemory, isElementInMemory, isElementOnDisk, isElementOnDisk, isExpired, isKeyInCache, isNodeBulkLoadEnabled, isNodeCoherent, isReadLockedByCurrentThread, isSearchable, isValueInCache, isWriteLockedByCurrentThread, putAll, recalculateSize, registerCacheExtension, registerCacheWriter, registerDynamicAttributesExtractor, releaseReadLockOnKey, releaseWriteLockOnKey, removeAndReturnElement, removeElement, removePropertyChangeListener, removeQuiet, removeQuiet, removeWithWriter, replace, replace, setBootstrapCacheLoader, setCacheExceptionHandler, setCacheManager, setDisabled, setName, setNodeBulkLoadEnabled, setNodeCoherent, setTransactionManagerLookup, toString, tryReadLockOnKey, tryWriteLockOnKey, unregisterCacheExtension, unregisterCacheWriter, waitUntilClusterBulkLoadComplete, waitUntilClusterCoherent |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LoadingCache(net.sf.ehcache.Ehcache cache,
CacheLoader<K,V> loader)
throws net.sf.ehcache.CacheException
net.sf.ehcache.CacheException| Method Detail |
|---|
public net.sf.ehcache.Element get(Object key)
get in interface net.sf.ehcache.Ehcacheget in class net.sf.ehcache.constructs.blocking.BlockingCache
public boolean remove(Serializable key,
boolean doNotNotifyCacheReplicators)
remove in interface net.sf.ehcache.Ehcacheremove in class net.sf.ehcache.constructs.EhcacheDecoratorAdapterpublic boolean remove(Serializable key)
remove in interface net.sf.ehcache.Ehcacheremove in class net.sf.ehcache.constructs.EhcacheDecoratorAdapterpublic boolean remove(Object key)
remove in interface net.sf.ehcache.Ehcacheremove in class net.sf.ehcache.constructs.EhcacheDecoratorAdapter
public boolean remove(Object key,
boolean doNotNotifyCacheReplicators)
remove in interface net.sf.ehcache.Ehcacheremove in class net.sf.ehcache.constructs.EhcacheDecoratorAdapterpublic void removeAll(Collection<?> keys)
removeAll in interface net.sf.ehcache.EhcacheremoveAll in class net.sf.ehcache.constructs.EhcacheDecoratorAdapter
public void removeAll(Collection<?> keys,
boolean doNotNotifyCacheReplicators)
removeAll in interface net.sf.ehcache.EhcacheremoveAll in class net.sf.ehcache.constructs.EhcacheDecoratorAdapterpublic void removeAll()
removeAll in interface net.sf.ehcache.EhcacheremoveAll in class net.sf.ehcache.constructs.EhcacheDecoratorAdapterpublic void removeAll(boolean doNotNotifyCacheReplicators)
removeAll in interface net.sf.ehcache.EhcacheremoveAll in class net.sf.ehcache.constructs.EhcacheDecoratorAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||