Uses of Class
net.sf.ehcache.CacheException
-
Packages that use CacheException Package Description net.sf.ehcache This package contains the public API for using ehcache.net.sf.ehcache.bootstrap This package contains the bootstrap cache loader interface and abstract factory.net.sf.ehcache.cluster This package contains the API for accessing the cluster node topology and registering to receive events about changes in the cluster node topology.net.sf.ehcache.concurrent This package contains concurrency classes and utilities that are not available in java.util.concurrent.net.sf.ehcache.config This package contains the cache configuration code.net.sf.ehcache.constructs The constructs package builds on top of the core ehcache classes to create implementations for common caching patterns.net.sf.ehcache.constructs.blocking Doug Lea in his book Concurrent Programming in Java talks about concurrency support constructs.net.sf.ehcache.constructs.classloader ClassLoader contstructs packagenet.sf.ehcache.constructs.eventual Construct related to eventual operationsnet.sf.ehcache.constructs.nonstop Ehcache-nonstopcache packagenet.sf.ehcache.constructs.nonstop.concurrency Nonstop feature related to concurrent packagenet.sf.ehcache.constructs.readthrough Ehcache simple read through cache decorator packagenet.sf.ehcache.constructs.refreshahead Ehcache simple refresh-ahead cache decorator packagenet.sf.ehcache.distribution This package is for cache replication.net.sf.ehcache.event This package contains interfaces and classes for listening to events.net.sf.ehcache.extension This package contains interfaces and classes for the cache extension mechanism.net.sf.ehcache.hibernate.management.impl This package contains JMX related classes for Hibernate and ehcache statisticsnet.sf.ehcache.loader This package contains a cache loaders and associated factories.net.sf.ehcache.management This package contains JMX MBeans and implementations for management of ehcache.net.sf.ehcache.management.sampled This package contains classes related to MBeans with Sampled Statistics.net.sf.ehcache.search This package contains classes for ehcache core search API.net.sf.ehcache.search.aggregator This package contains classes for search aggregator functionality.net.sf.ehcache.search.attribute This package contains classes for ehcache search attributesnet.sf.ehcache.search.query This package contains the QueryMangerBuilder and the QueryManager interface to support BMSQL.net.sf.ehcache.store Store package.net.sf.ehcache.store.disk This package contains the disk store.net.sf.ehcache.terracotta This package contains the Terracotta integration functionalities.net.sf.ehcache.transaction This package contains classes for controlling cache operations for transactional use.net.sf.ehcache.transaction.local This package contains the local transactions subsystem.net.sf.ehcache.transaction.xa This package contains the functionality to provide XA support to a transactional Cache.net.sf.ehcache.util Util package.net.sf.ehcache.writer This package contains the cache writer functionalities.net.sf.ehcache.writer.writebehind This package contains the write behind functionalities.net.sf.ehcache.writer.writethrough This package contains the write through functionalities. -
-
Uses of CacheException in net.sf.ehcache
Subclasses of CacheException in net.sf.ehcache Modifier and Type Class Description classLoaderTimeoutExceptionA loader timeout Exception.classObjectExistsExceptionThrown when a duplicate cache is attemtpted to be createdMethods in net.sf.ehcache that throw CacheException Modifier and Type Method Description voidCacheManager. addCache(java.lang.String cacheName)Adds aEhcachebased on the defaultCache with the given name.voidCacheManager. addCache(Cache cache)Adds aCacheto the CacheManager.voidCacheManager. addCache(Ehcache cache)Adds anEhcacheto the CacheManager.longCache. calculateInMemorySize()Deprecated.longEhcache. calculateInMemorySize()Deprecated.longCache. calculateOffHeapSize()Deprecated.longEhcache. calculateOffHeapSize()Deprecated.longCache. calculateOnDiskSize()Deprecated.longEhcache. calculateOnDiskSize()Deprecated.voidCacheManager. clearAll()Clears the contents of all caches in the CacheManager, but without removing any caches.voidCacheManager. clearAllStartingWith(java.lang.String prefix)Clears the contents of all caches in the CacheManager with a name starting with the prefix, but without removing them.static CacheManagerCacheManager. create()A factory method to create a singleton CacheManager with default config, or return it if it exists.static CacheManagerCacheManager. create(java.io.InputStream inputStream)A factory method to create a singleton CacheManager from a java.io.InputStream.static CacheManagerCacheManager. create(java.lang.String configurationFileName)A factory method to create a singleton CacheManager with a specified configuration.static CacheManagerCacheManager. create(java.net.URL configurationFileURL)A factory method to create a singleton CacheManager from an URL.static CacheManagerCacheManager. create(Configuration config)A factory method to create a singleton CacheManager from a net.sf.ehcache.config.Configuration.voidCache. flush()Flushes all cache items from memory to the disk store, and from the DiskStore to disk.voidEhcache. flush()Flushes all cache items from memory to the disk store, and from the DiskStore to disk.ElementCache. get(java.io.Serializable key)Gets an element from the cache.ElementCache. get(java.lang.Object key)Gets an element from the cache.ElementEhcache. get(java.io.Serializable key)Gets an element from the cache.ElementEhcache. get(java.lang.Object key)Gets an element from the cache.java.lang.StringCacheManager. getActiveConfigurationText(java.lang.String cacheName)Returns the active configuration text for the input cacheNamejava.util.Map<java.lang.Object,Element>Cache. getAll(java.util.Collection<?> keys)Gets all the elements from the cache for the keys provided.java.util.Map<java.lang.Object,Element>Ehcache. getAll(java.util.Collection<?> keys)Gets all the elements from the cache for the keys provided.java.util.MapCache. getAllWithLoader(java.util.Collection keys, java.lang.Object loaderArgument)The getAll method will return, from the cache, a Map of the objects associated with the Collection of keys in argument "keys".java.util.MapEhcache. getAllWithLoader(java.util.Collection keys, java.lang.Object loaderArgument)The getAll method will return, from the cache, a Map of the objects associated with the Collection of keys in argument "keys".static CacheManagerCacheManager. getInstance()A factory method to create a singleton CacheManager with default config, or return it if it exists.java.io.SerializableElement. getKey()Deprecated.Please useElement.getObjectKey()instead.java.util.ListCache. getKeys()Returns a list of all element keys in the cache, whether or not they are expired.java.util.ListEhcache. getKeys()Returns a list of all elements in the cache, whether or not they are expired.java.util.ListCache. getKeysWithExpiryCheck()Returns a list of all element keys in the cache.java.util.ListEhcache. getKeysWithExpiryCheck()Returns a list of all elements in the cache.java.lang.StringCacheManager. getOriginalConfigurationText(java.lang.String cacheName)Returns the original configuration text for the input cacheNameElementCache. getQuiet(java.io.Serializable key)Gets an element from the cache, without updating Element statistics.ElementCache. getQuiet(java.lang.Object key)Gets an element from the cache, without updating Element statistics.ElementEhcache. getQuiet(java.io.Serializable key)Gets an element from the cache, without updating Element statistics.ElementEhcache. getQuiet(java.lang.Object key)Gets an element from the cache, without updating Element statistics.<T> Attribute<T>Cache. getSearchAttribute(java.lang.String attributeName)Retrieve the given named search attribute<T> Attribute<T>Ehcache. getSearchAttribute(java.lang.String attributeName)Retrieve the given named search attributejava.util.Set<Attribute>Cache. getSearchAttributes()java.util.Set<Attribute>Ehcache. getSearchAttributes()intCache. getSize()Gets the size of the cache.intEhcache. getSize()Gets the size of the cache.java.io.SerializableElement. getValue()Deprecated.Please useElement.getObjectValue()instead.ElementCache. getWithLoader(java.lang.Object key, CacheLoader loader, java.lang.Object loaderArgument)This method will return, from the cache, the Element associated with the argument "key".ElementEhcache. getWithLoader(java.lang.Object key, CacheLoader loader, java.lang.Object loaderArgument)This method will return, from the cache, the object associated with the argument "key".voidCache. load(java.lang.Object key)The load method provides a means to "pre-load" the cache.voidEhcache. load(java.lang.Object key)The load method provides a means to "pre load" the cache.voidCache. loadAll(java.util.Collection keys, java.lang.Object argument)The loadAll method provides a means to "pre load" objects into the cache.voidEhcache. loadAll(java.util.Collection keys, java.lang.Object argument)The loadAll method provides a means to "pre load" objects into the cache.static CacheManagerCacheManager. newInstance()A factory method to create a CacheManager with default config, or return it if it exists.static CacheManagerCacheManager. newInstance(java.io.InputStream inputStream)A factory method to create a CacheManager from a java.io.InputStream.static CacheManagerCacheManager. newInstance(java.lang.String configurationFileName)A factory method to create a CacheManager with a specified configuration.static CacheManagerCacheManager. newInstance(java.net.URL configurationFileURL)A factory method to create a CacheManager from an URL.voidCache. put(Element element)Put an element in the cache.voidCache. put(Element element, boolean doNotNotifyCacheReplicators)Put an element in the cache.voidEhcache. put(Element element)Put an element in the cache.voidEhcache. put(Element element, boolean doNotNotifyCacheReplicators)Put an element in the cache.voidCache. putAll(java.util.Collection<Element> elements)Puts a collection of elements in to the cache.voidEhcache. putAll(java.util.Collection<Element> elements)Puts a collection of elements in to the cache.voidCache. putQuiet(Element element)Put an element in the cache, without updating statistics, or updating listeners.voidEhcache. putQuiet(Element element)Put an element in the cache, without updating statistics, or updating listeners.voidCache. putWithWriter(Element element)Put an element in the cache writing through a CacheWriter.voidEhcache. putWithWriter(Element element)Put an element in the cache writing through a CacheWriter.voidCache. removeAll()Removes all cached items.voidCache. removeAll(boolean doNotNotifyCacheReplicators)Removes all cached items.voidEhcache. removeAll()Removes all cached items.voidEhcache. removeAll(boolean doNotNotifyCacheReplicators)Removes all cached items.booleanEhcache. removeWithWriter(java.lang.Object key)Removes anElementfrom the Cache and any stores it might be in.voidCacheManager. replaceCacheWithDecoratedCache(Ehcache ehcache, Ehcache decoratedCache)Replaces in the map of Caches managed by this CacheManager an Ehcache with a decorated version of the same Ehcache.voidCache. setBootstrapCacheLoader(BootstrapCacheLoader bootstrapCacheLoader)Sets the bootstrap cache loader.voidEhcache. setBootstrapCacheLoader(BootstrapCacheLoader bootstrapCacheLoader)Sets the bootstrap cache loader.Constructors in net.sf.ehcache that throw CacheException Constructor Description CacheManager()Constructor.CacheManager(java.io.InputStream configurationInputStream)An ordinary constructor for CacheManager.CacheManager(java.lang.String configurationFileName)An ordinary constructor for CacheManager.CacheManager(java.net.URL configurationURL)An ordinary constructor for CacheManager.CacheManager(Configuration configuration)An constructor for CacheManager, which takes a configuration object, rather than one created by parsing an ehcache.xml file. -
Uses of CacheException in net.sf.ehcache.bootstrap
Methods in net.sf.ehcache.bootstrap that throw CacheException Modifier and Type Method Description voidBootstrapCacheLoader. load(Ehcache cache)Instructs the loader to load the given cache -
Uses of CacheException in net.sf.ehcache.cluster
Subclasses of CacheException in net.sf.ehcache.cluster Modifier and Type Class Description classClusterSchemeNotAvailableExceptionException type that is thrown when requesting for a certain type of ClusterScheme and its not available. -
Uses of CacheException in net.sf.ehcache.concurrent
Methods in net.sf.ehcache.concurrent that throw CacheException Modifier and Type Method Description static intConcurrencyUtil. selectLock(java.lang.Object key, int numberOfLocks)Selects a lock for a key. -
Uses of CacheException in net.sf.ehcache.config
Subclasses of CacheException in net.sf.ehcache.config Modifier and Type Class Description classInvalidConfigurationExceptionAn exception to report invalid configuration settings.Methods in net.sf.ehcache.config that throw CacheException Modifier and Type Method Description static CacheExceptionHandlerConfigurationHelper. createCacheExceptionHandler(CacheConfiguration.CacheExceptionHandlerFactoryConfiguration factoryConfiguration, java.lang.ClassLoader loader)Tries to create a CacheLoader from the configuration using the factory specified.CacheManagerEventListenerConfigurationHelper. createCacheManagerEventListener(CacheManager cacheManager)Tries to load the class specified.EhcacheConfigurationHelper. createDefaultCache()static CacheConfigurationConfigurationFactory. parseCacheConfiguration(java.lang.String xmlString)Configures a cache bean from a string of XML.static ConfigurationConfigurationFactory. parseConfiguration()Configures a bean from an XML file in the classpath.static ConfigurationConfigurationFactory. parseConfiguration(java.io.File file)Configures a bean from an XML file.static ConfigurationConfigurationFactory. parseConfiguration(java.io.InputStream inputStream)Configures a bean from an XML input stream.static ConfigurationConfigurationFactory. parseConfiguration(java.net.URL url)Configures a bean from an XML file available as an URL. -
Uses of CacheException in net.sf.ehcache.constructs
Methods in net.sf.ehcache.constructs that throw CacheException Modifier and Type Method Description longEhcacheDecoratorAdapter. calculateInMemorySize()Deprecated.longEhcacheDecoratorAdapter. calculateOffHeapSize()Deprecated.longEhcacheDecoratorAdapter. calculateOnDiskSize()Deprecated.voidEhcacheDecoratorAdapter. flush()Flushes all cache items from memory to the disk store, and from the DiskStore to disk.ElementEhcacheDecoratorAdapter. get(java.io.Serializable key)Gets an element from the cache.ElementEhcacheDecoratorAdapter. get(java.lang.Object key)Gets an element from the cache.java.util.Map<java.lang.Object,Element>EhcacheDecoratorAdapter. getAll(java.util.Collection<?> keys)Gets all the elements from the cache for the keys provided.java.util.MapEhcacheDecoratorAdapter. getAllWithLoader(java.util.Collection keys, java.lang.Object loaderArgument)The getAll method will return, from the cache, a Map of the objects associated with the Collection of keys in argument "keys".java.util.ListEhcacheDecoratorAdapter. getKeys()Returns a list of all elements in the cache, whether or not they are expired.java.util.ListEhcacheDecoratorAdapter. getKeysWithExpiryCheck()Returns a list of all elements in the cache.ElementEhcacheDecoratorAdapter. getQuiet(java.io.Serializable key)Gets an element from the cache, without updating Element statistics.ElementEhcacheDecoratorAdapter. getQuiet(java.lang.Object key)Gets an element from the cache, without updating Element statistics.<T> Attribute<T>EhcacheDecoratorAdapter. getSearchAttribute(java.lang.String attributeName)Retrieve the given named search attributejava.util.Set<Attribute>EhcacheDecoratorAdapter. getSearchAttributes()intEhcacheDecoratorAdapter. getSize()Gets the size of the cache.ElementEhcacheDecoratorAdapter. getWithLoader(java.lang.Object key, CacheLoader loader, java.lang.Object loaderArgument)This method will return, from the cache, the object associated with the argument "key".voidEhcacheDecoratorAdapter. load(java.lang.Object key)The load method provides a means to "pre load" the cache.voidEhcacheDecoratorAdapter. loadAll(java.util.Collection keys, java.lang.Object argument)The loadAll method provides a means to "pre load" objects into the cache.voidEhcacheDecoratorAdapter. put(Element element)Put an element in the cache.voidEhcacheDecoratorAdapter. put(Element element, boolean doNotNotifyCacheReplicators)Put an element in the cache.voidEhcacheDecoratorAdapter. putAll(java.util.Collection<Element> elements)Puts a collection of elements in to the cache.voidEhcacheDecoratorAdapter. putQuiet(Element element)Put an element in the cache, without updating statistics, or updating listeners.voidEhcacheDecoratorAdapter. putWithWriter(Element element)Put an element in the cache writing through a CacheWriter.voidEhcacheDecoratorAdapter. removeAll()Removes all cached items.voidEhcacheDecoratorAdapter. removeAll(boolean doNotNotifyCacheReplicators)Removes all cached items.booleanEhcacheDecoratorAdapter. removeWithWriter(java.lang.Object key)Removes anElementfrom the Cache and any stores it might be in.voidEhcacheDecoratorAdapter. setBootstrapCacheLoader(BootstrapCacheLoader bootstrapCacheLoader)Sets the bootstrap cache loader. -
Uses of CacheException in net.sf.ehcache.constructs.blocking
Subclasses of CacheException in net.sf.ehcache.constructs.blocking Modifier and Type Class Description classLockTimeoutExceptionIndicates that a timeout has occured while attempting to obtain a lock usingReadWriteLockSync.tryLock(net.sf.ehcache.concurrent.LockType, long)Methods in net.sf.ehcache.constructs.blocking that throw CacheException Modifier and Type Method Description ElementBlockingCache. get(java.io.Serializable key)Gets an element from the cache.java.util.MapBlockingCache. getAllWithLoader(java.util.Collection keys, java.lang.Object loaderArgument)This method is not appropriate to use with BlockingCache.ElementBlockingCache. getWithLoader(java.lang.Object key, CacheLoader loader, java.lang.Object loaderArgument)This method is not appropriate to use with BlockingCache.voidBlockingCache. load(java.lang.Object key)This method is not appropriate to use with BlockingCache.voidBlockingCache. loadAll(java.util.Collection keys, java.lang.Object argument)This method is not appropriate to use with BlockingCache.protected static ElementSelfPopulatingCache. makeAndCheckElement(java.lang.Object key, java.lang.Object value)Both CacheEntryFactory can return an Element rather than just a regular value this method test this, making a fresh Element otherwise.voidBlockingCache. put(Element element, boolean doNotNotifyCacheReplicators)voidBlockingCache. putQuiet(Element element)voidBlockingCache. putWithWriter(Element element)voidSelfPopulatingCache. refresh()Refresh the elements of this cache.voidSelfPopulatingCache. refresh(boolean quiet)Refresh the elements of this cache.ElementSelfPopulatingCache. refresh(java.lang.Object key)Refresh a single element.ElementSelfPopulatingCache. refresh(java.lang.Object key, boolean quiet)Refresh a single element.voidUpdatingSelfPopulatingCache. refresh()This method should not be used.Constructors in net.sf.ehcache.constructs.blocking that throw CacheException Constructor Description BlockingCache(Ehcache cache)Creates a BlockingCache which decorates the supplied cache.BlockingCache(Ehcache cache, int numberOfStripes)Creates a BlockingCache which decorates the supplied cache.SelfPopulatingCache(Ehcache cache, int numberOfStripes, CacheEntryFactory factory)Create a SelfPopulatingCache, with a specific number of stripes passed to the underlyingBlockingCache.SelfPopulatingCache(Ehcache cache, CacheEntryFactory factory)Creates a SelfPopulatingCache.UpdatingSelfPopulatingCache(Ehcache cache, UpdatingCacheEntryFactory factory)Creates a SelfPopulatingCache. -
Uses of CacheException in net.sf.ehcache.constructs.classloader
Methods in net.sf.ehcache.constructs.classloader that throw CacheException Modifier and Type Method Description longClassLoaderAwareCache. calculateInMemorySize()Deprecated.longClassLoaderAwareCache. calculateOffHeapSize()Deprecated.longClassLoaderAwareCache. calculateOnDiskSize()Deprecated.voidClassLoaderAwareCache. flush()Flushes all cache items from memory to the disk store, and from the DiskStore to disk.ElementClassLoaderAwareCache. get(java.io.Serializable arg0)Gets an element from the cache.ElementClassLoaderAwareCache. get(java.lang.Object arg0)Gets an element from the cache.java.util.MapClassLoaderAwareCache. getAll(java.util.Collection arg0)Gets all the elements from the cache for the keys provided.java.util.MapClassLoaderAwareCache. getAllWithLoader(java.util.Collection arg0, java.lang.Object arg1)The getAll method will return, from the cache, a Map of the objects associated with the Collection of keys in argument "keys".java.util.ListClassLoaderAwareCache. getKeys()Returns a list of all elements in the cache, whether or not they are expired.java.util.ListClassLoaderAwareCache. getKeysWithExpiryCheck()Returns a list of all elements in the cache.ElementClassLoaderAwareCache. getQuiet(java.io.Serializable arg0)Gets an element from the cache, without updating Element statistics.ElementClassLoaderAwareCache. getQuiet(java.lang.Object arg0)Gets an element from the cache, without updating Element statistics.AttributeClassLoaderAwareCache. getSearchAttribute(java.lang.String arg0)Retrieve the given named search attributejava.util.Set<Attribute>ClassLoaderAwareCache. getSearchAttributes()intClassLoaderAwareCache. getSize()Gets the size of the cache.ElementClassLoaderAwareCache. getWithLoader(java.lang.Object arg0, CacheLoader arg1, java.lang.Object arg2)This method will return, from the cache, the object associated with the argument "key".voidClassLoaderAwareCache. load(java.lang.Object arg0)The load method provides a means to "pre load" the cache.voidClassLoaderAwareCache. loadAll(java.util.Collection arg0, java.lang.Object arg1)The loadAll method provides a means to "pre load" objects into the cache.voidClassLoaderAwareCache. put(Element arg0)Put an element in the cache.voidClassLoaderAwareCache. put(Element arg0, boolean arg1)Put an element in the cache.voidClassLoaderAwareCache. putAll(java.util.Collection arg0)Puts a collection of elements in to the cache.voidClassLoaderAwareCache. putQuiet(Element arg0)Put an element in the cache, without updating statistics, or updating listeners.voidClassLoaderAwareCache. putWithWriter(Element arg0)Put an element in the cache writing through a CacheWriter.voidClassLoaderAwareCache. removeAll()Removes all cached items.voidClassLoaderAwareCache. removeAll(boolean arg0)Removes all cached items.booleanClassLoaderAwareCache. removeWithWriter(java.lang.Object arg0)Removes anElementfrom the Cache and any stores it might be in.voidClassLoaderAwareCache. setBootstrapCacheLoader(BootstrapCacheLoader arg0)Sets the bootstrap cache loader. -
Uses of CacheException in net.sf.ehcache.constructs.eventual
Methods in net.sf.ehcache.constructs.eventual that throw CacheException Modifier and Type Method Description ElementStronglyConsistentCacheAccessor. get(java.io.Serializable key)ElementStronglyConsistentCacheAccessor. get(java.lang.Object key)java.util.Map<java.lang.Object,Element>StronglyConsistentCacheAccessor. getAll(java.util.Collection<?> keys)java.util.MapStronglyConsistentCacheAccessor. getAllWithLoader(java.util.Collection keys, java.lang.Object loaderArgument)ElementStronglyConsistentCacheAccessor. getQuiet(java.io.Serializable key)ElementStronglyConsistentCacheAccessor. getQuiet(java.lang.Object key)ElementStronglyConsistentCacheAccessor. getWithLoader(java.lang.Object key, CacheLoader loader, java.lang.Object loaderArgument)voidStronglyConsistentCacheAccessor. put(Element element)voidStronglyConsistentCacheAccessor. put(Element element, boolean doNotNotifyCacheReplicators)voidStronglyConsistentCacheAccessor. putAll(java.util.Collection<Element> elements)voidStronglyConsistentCacheAccessor. putQuiet(Element element)voidStronglyConsistentCacheAccessor. putWithWriter(Element element)booleanStronglyConsistentCacheAccessor. removeWithWriter(java.lang.Object key) -
Uses of CacheException in net.sf.ehcache.constructs.nonstop
Subclasses of CacheException in net.sf.ehcache.constructs.nonstop Modifier and Type Class Description classNonStopCacheExceptionException type thrown for NonStopCache operationsclassRejoinCacheExceptionException type thrown for rejoins when non-stop is disabled. -
Uses of CacheException in net.sf.ehcache.constructs.nonstop.concurrency
Subclasses of CacheException in net.sf.ehcache.constructs.nonstop.concurrency Modifier and Type Class Description classInvalidLockStateAfterRejoinExceptionException class signifying invalid lock state.classLockOperationTimedOutNonstopExceptionSpecial class ofNonStopCacheExceptionwhich is thrown on timeout of lock operations -
Uses of CacheException in net.sf.ehcache.constructs.readthrough
Methods in net.sf.ehcache.constructs.readthrough that throw CacheException Modifier and Type Method Description ElementReadThroughCache. get(java.io.Serializable key)ElementReadThroughCache. get(java.lang.Object key) -
Uses of CacheException in net.sf.ehcache.constructs.refreshahead
Methods in net.sf.ehcache.constructs.refreshahead that throw CacheException Modifier and Type Method Description ElementRefreshAheadCache. get(java.io.Serializable key)ElementRefreshAheadCache. get(java.lang.Object key) -
Uses of CacheException in net.sf.ehcache.distribution
Subclasses of CacheException in net.sf.ehcache.distribution Modifier and Type Class Description classRemoteCacheExceptionA Cache Exception in the distribution mechanism.Methods in net.sf.ehcache.distribution that throw CacheException Modifier and Type Method Description voidCacheManagerPeerListener. attemptResolutionOfUniqueResourceConflict()If a conflict is detected in unique resource use, this method signals the listener to attempt automatic resolution of the resource conflict.voidRMICacheManagerPeerListener. attemptResolutionOfUniqueResourceConflict()If a conflict is detected in unique resource use, this method signals the listener to attempt automatic resolution of the resource conflict.CacheManagerPeerListenerRMICacheManagerPeerListenerFactory. createCachePeerListener(CacheManager cacheManager, java.util.Properties properties)CacheManagerPeerProviderRMICacheManagerPeerProviderFactory. createCachePeerProvider(CacheManager cacheManager, java.util.Properties properties)voidCacheManagerPeerProvider. dispose()Providers may be doing all sorts of exotic things and need to be able to clean up on dispose.voidRMICacheManagerPeerListener. dispose()Stop the listener.voidRMICacheManagerPeerProvider. dispose()Providers may be doing all sorts of exotic things and need to be able to clean up on dispose.voidMulticastRMICacheManagerPeerProvider. init()Notifies providers to initialise themselves.voidRMICacheManagerPeerListener. init()Call to start the listeners and do any other required initialisation.protected java.lang.String[]RMICacheManagerPeerListener. listBoundRMICachePeers()Returns a list of bound objects.java.util.ListCacheManagerPeerProvider. listRemoteCachePeers(Ehcache cache)java.util.ListManualRMICacheManagerPeerProvider. listRemoteCachePeers(Ehcache cache)java.util.ListMulticastRMICacheManagerPeerProvider. listRemoteCachePeers(Ehcache cache)abstract java.util.ListRMICacheManagerPeerProvider. listRemoteCachePeers(Ehcache cache)protected java.rmi.RemoteRMICacheManagerPeerListener. lookupPeer(java.lang.String name)Returns a reference to the remote object.voidRMICacheManagerPeerListener. notifyCacheAdded(java.lang.String cacheName)Called immediately after a cache has been added and activated.voidRMIAsynchronousCacheReplicator. notifyElementPut(Ehcache cache, Element element)Called immediately after an element has been put into the cache.voidRMISynchronousCacheReplicator. notifyElementPut(Ehcache cache, Element element)Called immediately after an element has been put into the cache.voidRMIAsynchronousCacheReplicator. notifyElementRemoved(Ehcache cache, Element element)Called immediately after an attempt to remove an element.voidRMISynchronousCacheReplicator. notifyElementRemoved(Ehcache cache, Element element)Called immediately after an attempt to remove an element.voidRMIAsynchronousCacheReplicator. notifyElementUpdated(Ehcache cache, Element element)Called immediately after an element has been put into the cache and the element already existed in the cache.voidRMISynchronousCacheReplicator. notifyElementUpdated(Ehcache cache, Element element)Called immediately after an element has been put into the cache and the element already existed in the cache. -
Uses of CacheException in net.sf.ehcache.event
Methods in net.sf.ehcache.event that throw CacheException Modifier and Type Method Description voidCacheManagerEventListener. dispose()Stop the listener and free any resources.voidCacheManagerEventListener. init()Call to start the listeners and do any other required initialisation.voidCacheEventListener. notifyElementPut(Ehcache cache, Element element)Called immediately after an element has been put into the cache.voidCacheEventListenerAdapter. notifyElementPut(Ehcache cache, Element element)Called immediately after an element has been put into the cache.voidRegisteredEventListeners. notifyElementPut(Element element, boolean remoteEvent)Notifies all registered listeners, in no guaranteed order, that an element was put into the cachevoidRegisteredEventListeners. notifyElementPut(RegisteredEventListeners.ElementCreationCallback callback, boolean remoteEvent)Notifies all registered listeners, in no guaranteed order, that an element was put into the cachevoidTerracottaCacheEventReplication. notifyElementPut(Ehcache cache, Element element)Called immediately after an element has been put into the cache.voidCacheEventListener. notifyElementRemoved(Ehcache cache, Element element)Called immediately after an attempt to remove an element.voidCacheEventListenerAdapter. notifyElementRemoved(Ehcache cache, Element element)Called immediately after an attempt to remove an element.voidRegisteredEventListeners. notifyElementRemoved(Element element, boolean remoteEvent)Notifies all registered listeners, in no guaranteed order, that an element was removedvoidRegisteredEventListeners. notifyElementRemoved(RegisteredEventListeners.ElementCreationCallback callback, boolean remoteEvent)Notifies all registered listeners, in no guaranteed order, that an element was removedvoidTerracottaCacheEventReplication. notifyElementRemoved(Ehcache cache, Element element)Called immediately after an attempt to remove an element.voidCacheEventListener. notifyElementUpdated(Ehcache cache, Element element)Called immediately after an element has been put into the cache and the element already existed in the cache.voidCacheEventListenerAdapter. notifyElementUpdated(Ehcache cache, Element element)Called immediately after an element has been put into the cache and the element already existed in the cache.voidTerracottaCacheEventReplication. notifyElementUpdated(Ehcache cache, Element element)Called immediately after an element has been put into the cache and the element already existed in the cache. -
Uses of CacheException in net.sf.ehcache.extension
Methods in net.sf.ehcache.extension that throw CacheException Modifier and Type Method Description voidCacheExtension. dispose()Providers may be doing all sorts of exotic things and need to be able to clean up on dispose. -
Uses of CacheException in net.sf.ehcache.hibernate.management.impl
Methods in net.sf.ehcache.hibernate.management.impl that throw CacheException Modifier and Type Method Description voidEhcacheHibernateMBeanRegistrationImpl. dispose()Stop the listener and free any resources.voidEhcacheHibernateMBeanRegistrationImpl. init()No-op in this case -
Uses of CacheException in net.sf.ehcache.loader
Methods in net.sf.ehcache.loader that throw CacheException Modifier and Type Method Description voidCacheLoader. dispose()CacheLoader instances may be doing all sorts of exotic things and need to be able to clean up on dispose.java.lang.ObjectCacheLoader. load(java.lang.Object key)loads an object. -
Uses of CacheException in net.sf.ehcache.management
Methods in net.sf.ehcache.management that throw CacheException Modifier and Type Method Description voidManagementService. dispose()Stop the listener and free any resources.voidCache. flush()Flushes all cache items from memory to the disk store, and from the DiskStore to disk.voidCacheMBean. flush()Flushes all cache items from memory to the disk store, and from the DiskStore to disk.voidManagementService. init()Call to register the mbeans in the mbean server and start the event listeners and do any other required initialisation.static voidManagementService. registerMBeans(CacheManager cacheManager, javax.management.MBeanServer mBeanServer, boolean registerCacheManager, boolean registerCaches, boolean registerCacheConfigurations, boolean registerCacheStatistics)A convenience static method which creates a ManagementService and initialises it with the supplied parameters.static voidManagementService. registerMBeans(CacheManager cacheManager, javax.management.MBeanServer mBeanServer, boolean registerCacheManager, boolean registerCaches, boolean registerCacheConfigurations, boolean registerCacheStatistics, boolean registerCacheStores)A convenience static method which creates a ManagementService and initialises it with the supplied parameters.voidCache. removeAll()Removes all cached items.voidCacheMBean. removeAll()Removes all cached items.Constructors in net.sf.ehcache.management that throw CacheException Constructor Description Cache(Ehcache cache)A constructor for JCache.CacheManager(CacheManager cacheManager)Create a management CacheManagerManagementService(CacheManager cacheManager, javax.management.MBeanServer mBeanServer, boolean registerCacheManager, boolean registerCaches, boolean registerCacheConfigurations, boolean registerCacheStatistics)A constructor for a management service for a range of possible MBeans.ManagementService(CacheManager cacheManager, javax.management.MBeanServer mBeanServer, boolean registerCacheManager, boolean registerCaches, boolean registerCacheConfigurations, boolean registerCacheStatistics, boolean registerCacheStores)A constructor for a management service for a range of possible MBeans. -
Uses of CacheException in net.sf.ehcache.management.sampled
Methods in net.sf.ehcache.management.sampled that throw CacheException Modifier and Type Method Description voidSampledMBeanRegistrationProvider. dispose()Stop the listener and free any resources.voidSampledMBeanRegistrationProvider. init()CacheManagerEventListener.init() - no need to do anything herebooleanCacheManagerSamplerImpl. isEnabled()Returns if each cache is enabled.booleanSampledCacheManager. isEnabled()Returns if each contained cache is enabled. -
Uses of CacheException in net.sf.ehcache.search
Subclasses of CacheException in net.sf.ehcache.search Modifier and Type Class Description classSearchExceptionA generic search exception. -
Uses of CacheException in net.sf.ehcache.search.aggregator
Subclasses of CacheException in net.sf.ehcache.search.aggregator Modifier and Type Class Description classAggregatorExceptionThrown if an Aggregator cannot complete. -
Uses of CacheException in net.sf.ehcache.search.attribute
Subclasses of CacheException in net.sf.ehcache.search.attribute Modifier and Type Class Description classAttributeExtractorExceptionAn exception to indicate that an attribute extractor was unable to be processed.classUnknownAttributeExceptionThrown at query execution time if query referenced an unknown search attribute -
Uses of CacheException in net.sf.ehcache.search.query
Methods in net.sf.ehcache.search.query that throw CacheException Modifier and Type Method Description QueryQueryManager. createQuery(java.lang.String statement)Parses aStringstatement expressing an Ehcache Search query and returns aQueryobject for the cache specified in the statement. -
Uses of CacheException in net.sf.ehcache.store
Methods in net.sf.ehcache.store that throw CacheException Modifier and Type Method Description protected voidLruMemoryStore. doPut(Element element)Allow specialised actions over adding the element to the map.protected voidLruMemoryStore. evict(Element element)Evict theElement.<T> Attribute<T>AbstractStore. getSearchAttribute(java.lang.String attributeName)Retrieve the given named search attributelongLruMemoryStore. getSizeInBytes()Measures the size of the memory store by using the sizeof engine.voidDiskStoreBootstrapCacheLoader. load(Ehcache cache)Instructs the loader to load the given cachebooleanCacheStore. put(Element element)booleanElementIdAssigningStore. put(Element element)Puts an item into the store.booleanLegacyStoreWrapper. put(Element element)Puts an item into the store.booleanLruMemoryStore. put(Element element)Puts an item in the cache.booleanMemoryStore. put(Element element)Puts an item in the store.booleanStore. put(Element element)Puts an item into the store.voidAbstractStore. putAll(java.util.Collection<Element> elements)Puts a collection of elements into the store.voidCacheStore. putAll(java.util.Collection<Element> elements)voidElementIdAssigningStore. putAll(java.util.Collection<Element> elements)Puts a collection of elements into the store.voidStore. putAll(java.util.Collection<Element> elements)Puts a collection of elements into the store.booleanCacheStore. putWithWriter(Element element, CacheWriterManager writerManager)booleanElementIdAssigningStore. putWithWriter(Element element, CacheWriterManager writerManager)Puts an item into the store and the cache writer manager in an atomic operationbooleanLegacyStoreWrapper. putWithWriter(Element element, CacheWriterManager writerManager)Puts an item into the store and the cache writer manager in an atomic operationbooleanLruMemoryStore. putWithWriter(Element element, CacheWriterManager writerManager)Puts an item into the store and the cache writer manager in an atomic operationbooleanMemoryStore. putWithWriter(Element element, CacheWriterManager writerManager)Puts an item into the store and the cache writer manager in an atomic operationbooleanStore. putWithWriter(Element element, CacheWriterManager writerManager)Puts an item into the store and the cache writer manager in an atomic operationvoidCacheStore. removeAll()voidElementIdAssigningStore. removeAll()Remove all of the elements from the store.voidLegacyStoreWrapper. removeAll()Remove all of the elements from the store.voidLruMemoryStore. removeAll()Remove all of the elements from the store.voidMemoryStore. removeAll()Remove all of the elements from the store.voidStore. removeAll()Remove all of the elements from the store.ElementCacheStore. removeWithWriter(java.lang.Object key, CacheWriterManager writerManager)ElementElementIdAssigningStore. removeWithWriter(java.lang.Object key, CacheWriterManager writerManager)Removes an item from the store and the cache writer manager in an atomic operation.ElementLegacyStoreWrapper. removeWithWriter(java.lang.Object key, CacheWriterManager writerManager)Removes an item from the store and the cache writer manager in an atomic operation.ElementLruMemoryStore. removeWithWriter(java.lang.Object key, CacheWriterManager writerManager)Removes an item from the store and the cache writer manager in an atomic operation.ElementMemoryStore. removeWithWriter(java.lang.Object key, CacheWriterManager writerManager)Removes an item from the store and the cache writer manager in an atomic operation.ElementStore. removeWithWriter(java.lang.Object key, CacheWriterManager writerManager)Removes an item from the store and the cache writer manager in an atomic operation. -
Uses of CacheException in net.sf.ehcache.store.disk
Subclasses of CacheException in net.sf.ehcache.store.disk Modifier and Type Class Description classStoreUpdateExceptionException thrown by the Store when the writer fails. -
Uses of CacheException in net.sf.ehcache.terracotta
Subclasses of CacheException in net.sf.ehcache.terracotta Modifier and Type Class Description classTerracottaNotRunningExceptionException thrown when using Terracotta clustered operations and Terracotta is not runningMethods in net.sf.ehcache.terracotta that throw CacheException Modifier and Type Method Description voidTerracottaBootstrapCacheLoader. load(Ehcache cache)Instructs the loader to load the given cache -
Uses of CacheException in net.sf.ehcache.transaction
Subclasses of CacheException in net.sf.ehcache.transaction Modifier and Type Class Description classDeadLockExceptionThis exception is thrown when a deadlock between two transactions is detectedclassTransactionExceptionInstances of this class or its subclasses are thrown when an error happen in the transaction subsystemclassTransactionIDNotFoundExceptionThis exception is used when a transaction ID suddenly disappeared when trying to update its state.classTransactionInterruptedExceptionThis exception is thrown when a transactional operation got interrupted via Thread.interruptclassTransactionTimeoutExceptionThis exception is thrown when a transactional operation times outMethods in net.sf.ehcache.transaction that throw CacheException Modifier and Type Method Description <T> Attribute<T>AbstractTransactionStore. getSearchAttribute(java.lang.String attributeName)Retrieve the given named search attribute -
Uses of CacheException in net.sf.ehcache.transaction.local
Methods in net.sf.ehcache.transaction.local that throw CacheException Modifier and Type Method Description booleanJtaLocalTransactionStore. put(Element element)Puts an item into the store.booleanLocalTransactionStore. put(Element element)Puts an item into the store.voidJtaLocalTransactionStore. putAll(java.util.Collection<Element> elements)Puts a collection of elements into the store.booleanJtaLocalTransactionStore. putWithWriter(Element element, CacheWriterManager writerManager)Puts an item into the store and the cache writer manager in an atomic operationbooleanLocalTransactionStore. putWithWriter(Element element, CacheWriterManager writerManager)Puts an item into the store and the cache writer manager in an atomic operationvoidJtaLocalTransactionStore. removeAll()Remove all of the elements from the store.voidLocalTransactionStore. removeAll()Remove all of the elements from the store.ElementJtaLocalTransactionStore. removeWithWriter(java.lang.Object key, CacheWriterManager writerManager)Removes an item from the store and the cache writer manager in an atomic operation.ElementLocalTransactionStore. removeWithWriter(java.lang.Object key, CacheWriterManager writerManager)Removes an item from the store and the cache writer manager in an atomic operation. -
Uses of CacheException in net.sf.ehcache.transaction.xa
Subclasses of CacheException in net.sf.ehcache.transaction.xa Modifier and Type Class Description classOptimisticLockFailureExceptionThis exception is used internally when an optimistic lock failed, ie: when the expected previous value is not found at commit time.Methods in net.sf.ehcache.transaction.xa that throw CacheException Modifier and Type Method Description booleanXATransactionStore. put(Element element)Puts an item into the store.booleanXATransactionStore. putWithWriter(Element element, CacheWriterManager writerManager)Puts an item into the store and the cache writer manager in an atomic operationvoidXATransactionStore. removeAll()Remove all of the elements from the store.ElementXATransactionStore. removeWithWriter(java.lang.Object key, CacheWriterManager writerManager)Removes an item from the store and the cache writer manager in an atomic operation. -
Uses of CacheException in net.sf.ehcache.util
Methods in net.sf.ehcache.util that throw CacheException Modifier and Type Method Description static voidCacheTransactionHelper. beginTransactionIfNeeded(Ehcache cache)Begin a transaction on the current thread if the cache is configured as transactional, otherwise this method does nothing.static voidCacheTransactionHelper. commitTransactionIfNeeded(Ehcache cache)Commit a transaction previously begun on the current thread if the cache is configured as transactional, otherwise this method does nothing.static java.lang.ObjectClassLoaderUtil. createNewInstance(java.lang.ClassLoader loader, java.lang.String className)Creates a new class instance with the given loader.static java.lang.ObjectClassLoaderUtil. createNewInstance(java.lang.ClassLoader loader, java.lang.String className, java.lang.Class[] argTypes, java.lang.Object[] args)Creates a new class instance and passes args to the constructor call.static booleanCacheTransactionHelper. isTransactionStarted(Ehcache cache)Check if a transaction has begun on the current thread if the cache is configured as transactional, otherwise always return false. -
Uses of CacheException in net.sf.ehcache.writer
Subclasses of CacheException in net.sf.ehcache.writer Modifier and Type Class Description classCacheWriterManagerExceptionAn exception specifically for throwing exceptions that happen with aCacheWriterManagerimplementation.Methods in net.sf.ehcache.writer that throw CacheException Modifier and Type Method Description voidAbstractCacheWriter. delete(CacheEntry entry)Delete the cache entry from the storevoidCacheWriter. delete(CacheEntry entry)Delete the cache entry from the storevoidAbstractCacheWriter. deleteAll(java.util.Collection<CacheEntry> entries)Remove data and keys from the underlying store for the given collection of keys, if present.voidCacheWriter. deleteAll(java.util.Collection<CacheEntry> entries)Remove data and keys from the underlying store for the given collection of keys, if present.voidAbstractCacheWriter. dispose()Providers may be doing all sorts of exotic things and need to be able to clean up on dispose.voidCacheWriter. dispose()Providers may be doing all sorts of exotic things and need to be able to clean up on dispose.voidCacheWriterManager. dispose()Cleans up the resources of the cache writer manager.voidCacheWriterManager. init(Cache cache)Initialize the cache writer manager.voidCacheWriterManager. put(Element element)Schedule a put operation for this element in the CacheWriterManager, which will call the CacheWriter when appropriate.voidCacheWriterManager. remove(CacheEntry entry)Schedule a remove operation for this key in the CacheWriterManager, which will call the CacheWriter when appropriate.voidAbstractCacheWriter. write(Element element)Write the specified value under the specified key to the underlying store.voidCacheWriter. write(Element element)Write the specified value under the specified key to the underlying store.voidAbstractCacheWriter. writeAll(java.util.Collection<Element> elements)Write the specified Elements to the underlying store.voidCacheWriter. writeAll(java.util.Collection<Element> elements)Write the specified Elements to the underlying store. -
Uses of CacheException in net.sf.ehcache.writer.writebehind
Methods in net.sf.ehcache.writer.writebehind that throw CacheException Modifier and Type Method Description voidWriteBehindManager. init(Cache cache)Initialize the cache writer manager.voidWriteBehindManager. put(Element element)Schedule a put operation for this element in the CacheWriterManager, which will call the CacheWriter when appropriate.voidWriteBehindManager. remove(CacheEntry entry)Schedule a remove operation for this key in the CacheWriterManager, which will call the CacheWriter when appropriate.voidNonStopWriteBehind. start(CacheWriter writerParam)voidWriteBehind. start(CacheWriter writer)Start the write behind queue with a cache writervoidWriteBehindQueueManager. start(CacheWriter writer)Start the write behind queue with a cache writervoidAbstractWriteBehindQueue. stop()Stop the coordinator and all the internal data structures.voidNonStopWriteBehind. stop()voidWriteBehind. stop()Stop the coordinator and all the internal data structures.voidWriteBehindQueueManager. stop()Stop the coordinator and all the internal data structures. -
Uses of CacheException in net.sf.ehcache.writer.writethrough
Methods in net.sf.ehcache.writer.writethrough that throw CacheException Modifier and Type Method Description voidWriteThroughManager. init(Cache cache)Initialize the cache writer manager.voidWriteThroughManager. put(Element element)Schedule a put operation for this element in the CacheWriterManager, which will call the CacheWriter when appropriate.voidWriteThroughManager. remove(CacheEntry entry)Schedule a remove operation for this key in the CacheWriterManager, which will call the CacheWriter when appropriate.
-