Class SynchronizedLoadingCacheDecorator

java.lang.Object
net.sf.ehcache.constructs.EhcacheDecoratorAdapter
com.atlassian.cache.ehcache.SynchronizedLoadingCacheDecorator
All Implemented Interfaces:
Cloneable, net.sf.ehcache.Ehcache, net.sf.ehcache.terracotta.InternalEhcache

public class SynchronizedLoadingCacheDecorator extends net.sf.ehcache.constructs.EhcacheDecoratorAdapter
  • Field Summary

    Fields inherited from class net.sf.ehcache.constructs.EhcacheDecoratorAdapter

    underlyingCache
  • Constructor Summary

    Constructors
    Constructor
    Description
    SynchronizedLoadingCacheDecorator(net.sf.ehcache.Ehcache delegate)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    boolean
    remove(Serializable key, boolean doNotNotifyCacheReplicators)
     
    boolean
     
    boolean
    remove(Object key, boolean doNotNotifyCacheReplicators)
     
    void
     
    void
    removeAll(boolean doNotNotifyCacheReplicators)
     
    protected <V> net.sf.ehcache.Element
    synchronizedLoad(Object key, Function<Object,V> loader, Consumer<net.sf.ehcache.Element> postLoadProcessor)
     

    Methods inherited from class net.sf.ehcache.constructs.EhcacheDecoratorAdapter

    acquireReadLockOnKey, acquireWriteLockOnKey, addPropertyChangeListener, bootstrap, calculateInMemorySize, calculateOffHeapSize, calculateOnDiskSize, clone, createQuery, disableDynamicFeatures, dispose, evictExpiredElements, flush, get, get, getAll, getAllWithLoader, getBootstrapCacheLoader, getCacheConfiguration, getCacheEventNotificationService, getCacheExceptionHandler, getCacheManager, getDiskStoreSize, getGuid, getInternalContext, getKeys, getKeysNoDuplicateCheck, getKeysWithExpiryCheck, getMemoryStoreSize, getName, 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, 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, waitUntilClusterCoherent

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SynchronizedLoadingCacheDecorator

      public SynchronizedLoadingCacheDecorator(net.sf.ehcache.Ehcache delegate)
  • Method Details

    • synchronizedLoad

      protected <V> net.sf.ehcache.Element synchronizedLoad(Object key, Function<Object,V> loader, Consumer<net.sf.ehcache.Element> postLoadProcessor)
    • remove

      public boolean remove(Serializable key, boolean doNotNotifyCacheReplicators)
      Specified by:
      remove in interface net.sf.ehcache.Ehcache
      Overrides:
      remove in class net.sf.ehcache.constructs.EhcacheDecoratorAdapter
    • remove

      public boolean remove(Serializable key)
      Specified by:
      remove in interface net.sf.ehcache.Ehcache
      Overrides:
      remove in class net.sf.ehcache.constructs.EhcacheDecoratorAdapter
    • remove

      public boolean remove(Object key, boolean doNotNotifyCacheReplicators)
      Specified by:
      remove in interface net.sf.ehcache.Ehcache
      Overrides:
      remove in class net.sf.ehcache.constructs.EhcacheDecoratorAdapter
    • remove

      public boolean remove(Object key)
      Specified by:
      remove in interface net.sf.ehcache.Ehcache
      Overrides:
      remove in class net.sf.ehcache.constructs.EhcacheDecoratorAdapter
    • removeAll

      public void removeAll()
      Specified by:
      removeAll in interface net.sf.ehcache.Ehcache
      Overrides:
      removeAll in class net.sf.ehcache.constructs.EhcacheDecoratorAdapter
    • removeAll

      public void removeAll(boolean doNotNotifyCacheReplicators)
      Specified by:
      removeAll in interface net.sf.ehcache.Ehcache
      Overrides:
      removeAll in class net.sf.ehcache.constructs.EhcacheDecoratorAdapter