public class ReadThroughCache extends EhcacheDecoratorAdapter
Cache.java implements; each separate cache may try to load
a key at the same time.underlyingCache| Constructor and Description |
|---|
ReadThroughCache(Ehcache underlyingCache,
ReadThroughCacheConfiguration config) |
| Modifier and Type | Method and Description |
|---|---|
Element |
get(Object key)
Gets an element from the cache.
|
Element |
get(Serializable key)
Gets an element from the cache.
|
String |
getName()
Gets the cache name.
|
acquireReadLockOnKey, acquireWriteLockOnKey, addPropertyChangeListener, bootstrap, calculateInMemorySize, calculateOffHeapSize, calculateOnDiskSize, clone, createQuery, disableDynamicFeatures, dispose, evictExpiredElements, flush, getAll, getAllWithLoader, getBootstrapCacheLoader, getCacheConfiguration, getCacheEventNotificationService, getCacheExceptionHandler, getCacheManager, getDiskStoreSize, getGuid, getInternalContext, getKeys, getKeysNoDuplicateCheck, getKeysWithExpiryCheck, getMemoryStoreSize, getOffHeapStoreSize, getQuiet, getQuiet, getRegisteredCacheExtensions, getRegisteredCacheLoaders, getRegisteredCacheWriter, getSearchAttribute, getSearchAttributes, getSize, getStatistics, getStatus, getWithLoader, getWriterManager, hasAbortedSizeOf, initialise, isClusterBulkLoadEnabled, isClusterCoherent, isDisabled, isElementInMemory, isElementInMemory, isElementOnDisk, isElementOnDisk, isExpired, isKeyInCache, isNodeBulkLoadEnabled, isNodeCoherent, isReadLockedByCurrentThread, isSearchable, isValueInCache, isWriteLockedByCurrentThread, load, loadAll, put, put, putAll, putIfAbsent, putIfAbsent, putQuiet, putWithWriter, recalculateSize, registerCacheExtension, registerCacheLoader, registerCacheWriter, registerDynamicAttributesExtractor, releaseReadLockOnKey, releaseWriteLockOnKey, remove, remove, remove, remove, removeAll, removeAll, removeAll, removeAll, removeAndReturnElement, removeElement, removePropertyChangeListener, removeQuiet, removeQuiet, removeWithWriter, replace, replace, setBootstrapCacheLoader, setCacheExceptionHandler, setCacheManager, setDisabled, setName, setNodeBulkLoadEnabled, setNodeCoherent, setTransactionManagerLookup, toString, tryReadLockOnKey, tryWriteLockOnKey, unregisterCacheExtension, unregisterCacheLoader, unregisterCacheWriter, waitUntilClusterBulkLoadComplete, waitUntilClusterCoherentpublic ReadThroughCache(Ehcache underlyingCache, ReadThroughCacheConfiguration config)
underlyingCache - config - public Element get(Object key) throws IllegalStateException, CacheException
EhcacheDecoratorAdapterEhcache.getQuiet(Object) to peek into the Element to see its last access time with getget in interface Ehcacheget in class EhcacheDecoratorAdapterkey - an Object valueIllegalStateException - if the cache is not Status.STATUS_ALIVECacheExceptionEhcache.isExpired(net.sf.ehcache.Element)public Element get(Serializable key) throws IllegalStateException, CacheException
EhcacheDecoratorAdapterEhcache.getQuiet(Object) to peak into the Element to see its last access time with getget in interface Ehcacheget in class EhcacheDecoratorAdapterkey - a serializable valueIllegalStateException - if the cache is not Status.STATUS_ALIVECacheExceptionEhcache.isExpired(net.sf.ehcache.Element)public String getName()
EhcacheDecoratorAdaptergetName in interface EhcachegetName in class EhcacheDecoratorAdapterCopyright © 2003–2016 Terracotta, Inc.. All rights reserved.