ehcache

Uses of Class
net.sf.ehcache.CacheException

Packages that use CacheException
net.sf.ehcache This package contains the public API for using ehcache. 
net.sf.ehcache.config This package contains the cache configuration code. 
net.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.store Store package. 
net.sf.ehcache.util Util package. 
 

Uses of CacheException in net.sf.ehcache
 

Subclasses of CacheException in net.sf.ehcache
 class ObjectExistsException
          Thrown when a duplicate cache is attemtpted to be created
 

Methods in net.sf.ehcache that throw CacheException
 void Cache.put(Element element)
          Put an element in the cache.
 void Cache.put(Element element, boolean doNotNotifyCacheReplicators)
          Put an element in the cache.
 void Cache.putQuiet(Element element)
          Put an element in the cache, without updating statistics, or updating listeners.
 Element Cache.get(java.io.Serializable key)
          Gets an element from the cache.
 Element Cache.get(java.lang.Object key)
          Gets an element from the cache.
 Element Cache.getQuiet(java.io.Serializable key)
          Gets an element from the cache, without updating Element statistics.
 Element Cache.getQuiet(java.lang.Object key)
          Gets an element from the cache, without updating Element statistics.
 java.util.List Cache.getKeys()
          Returns a list of all elements in the cache, whether or not they are expired.
 java.util.List Cache.getKeysWithExpiryCheck()
          Returns a list of all elements in the cache.
 void Cache.removeAll()
          Removes all cached items.
 void Cache.flush()
          Flushes all cache items from memory to the disk store, and from the DiskStore to disk.
 int Cache.getSize()
          Gets the size of the cache.
 long Cache.calculateInMemorySize()
          Gets the size of the memory store for this cache

Warning: This method can be very expensive to run.

static CacheManager CacheManager.create()
          A factory method to create a singleton CacheManager with default config, or return it if it exists.
static CacheManager CacheManager.getInstance()
          A factory method to create a singleton CacheManager with default config, or return it if it exists.
static CacheManager CacheManager.create(java.lang.String configurationFileName)
          A factory method to create a singleton CacheManager with a specified configuration.
static CacheManager CacheManager.create(java.net.URL configurationFileURL)
          A factory method to create a singleton CacheManager from an URL.
static CacheManager CacheManager.create(java.io.InputStream inputStream)
          A factory method to create a singleton CacheManager from a java.io.InputStream.
 void CacheManager.addCache(java.lang.String cacheName)
          Adds a Cache based on the defaultCache with the given name.
 void CacheManager.addCache(Cache cache)
          Adds a Cache to the CacheManager.
 

Constructors in net.sf.ehcache that throw CacheException
CacheManager(Configuration configuration)
          An constructor for CacheManager, which takes a configuration object, rather than one created by parsing an ehcache.xml file.
CacheManager(java.lang.String configurationFileName)
          An ordinary constructor for CacheManager.
CacheManager(java.net.URL configurationURL)
          An ordinary constructor for CacheManager.
CacheManager(java.io.InputStream configurationInputStream)
          An ordinary constructor for CacheManager.
CacheManager()
          Constructor.
 

Uses of CacheException in net.sf.ehcache.config
 

Methods in net.sf.ehcache.config that throw CacheException
static Configuration ConfigurationFactory.parseConfiguration(java.io.File file)
          Configures a bean from an XML file.
static Configuration ConfigurationFactory.parseConfiguration(java.net.URL url)
          Configures a bean from an XML file available as an URL.
static Configuration ConfigurationFactory.parseConfiguration()
          Configures a bean from an XML file in the classpath.
static Configuration ConfigurationFactory.parseConfiguration(java.io.InputStream inputStream)
          Configures a bean from an XML input stream.
 CacheManagerEventListener ConfigurationHelper.createCacheManagerEventListener()
          Tries to load the class specified.
 Cache ConfigurationHelper.createDefaultCache()
           
 

Uses of CacheException in net.sf.ehcache.distribution
 

Subclasses of CacheException in net.sf.ehcache.distribution
 class RemoteCacheException
          A Cache Exception in the distribution mechanism.
 

Methods in net.sf.ehcache.distribution that throw CacheException
 void RMICacheManagerPeerListener.init()
          Call to start the listeners and do any other network initialisation.
 void RMICacheManagerPeerListener.dispose()
          Stop the listener.
 java.util.List CacheManagerPeerProvider.listRemoteCachePeers(Cache cache)
           
 void CacheManagerPeerProvider.dispose()
          Providers may be doing all sorts of exotic things and need to be able to clean up on dispose.
 void RMIAsynchronousCacheReplicator.notifyElementPut(Cache cache, Element element)
          Called immediately after an element has been put into the cache. The Cache.put(net.sf.ehcache.Element) method will block until this method returns.

Implementers may wish to have access to the Element's fields, including value, so the element is provided. Implementers should be careful not to modify the element. The effect of any modifications is undefined.

This implementation queues the put notification for in-order replication to peers.

 void RMIAsynchronousCacheReplicator.notifyElementUpdated(Cache cache, Element element)
          Called immediately after an element has been put into the cache and the element already existed in the cache.
 void RMIAsynchronousCacheReplicator.notifyElementRemoved(Cache cache, Element element)
          Called immediately after an element has been removed.
 CacheManagerPeerProvider RMICacheManagerPeerProviderFactory.createCachePeerProvider(CacheManager cacheManager, java.util.Properties properties)
           
 void MulticastRMICacheManagerPeerProvider.init()
          Notifies providers to initialise themselves.
 java.util.List MulticastRMICacheManagerPeerProvider.listRemoteCachePeers(Cache cache)
           
 CacheManagerPeerListener RMICacheManagerPeerListenerFactory.createCachePeerListener(CacheManager cacheManager, java.util.Properties properties)
           
 void CacheManagerPeerListener.init()
          Call to start the listeners and do any other network initialisation.
 void CacheManagerPeerListener.dispose()
          Stop the listener and free any resources.
abstract  java.util.List RMICacheManagerPeerProvider.listRemoteCachePeers(Cache cache)
           
 void RMICacheManagerPeerProvider.dispose()
          Providers may be doing all sorts of exotic things and need to be able to clean up on dispose.
 void RMISynchronousCacheReplicator.notifyElementPut(Cache cache, Element element)
          Called immediately after an element has been put into the cache.
 void RMISynchronousCacheReplicator.notifyElementUpdated(Cache cache, Element element)
          Called immediately after an element has been put into the cache and the element already existed in the cache.
 void RMISynchronousCacheReplicator.notifyElementRemoved(Cache cache, Element element)
          Called immediately after an element has been removed.
 java.util.List ManualRMICacheManagerPeerProvider.listRemoteCachePeers(Cache cache)
           
 

Uses of CacheException in net.sf.ehcache.event
 

Methods in net.sf.ehcache.event that throw CacheException
 void CacheEventListener.notifyElementRemoved(Cache cache, Element element)
          Called immediately after an element has been removed.
 void CacheEventListener.notifyElementPut(Cache cache, Element element)
          Called immediately after an element has been put into the cache.
 void CacheEventListener.notifyElementUpdated(Cache cache, Element element)
          Called immediately after an element has been put into the cache and the element already existed in the cache.
 void RegisteredEventListeners.notifyElementRemoved(Element element, boolean remoteEvent)
          Notifies all registered listeners, in no guaranteed order, that an element was removed
 void RegisteredEventListeners.notifyElementPut(Element element, boolean remoteEvent)
          Notifies all registered listeners, in no guaranteed order, that an element was put into the cache
 

Uses of CacheException in net.sf.ehcache.store
 

Methods in net.sf.ehcache.store that throw CacheException
protected  void FifoMemoryStore.doPut(Element element)
          Allow specialised actions over adding the element to the map
 void Store.put(Element element)
          Puts an item into the cache.
 void Store.removeAll()
          Remove all of the elements from the store.
 void MemoryStore.put(Element element)
          Puts an item in the cache.
protected  void MemoryStore.doPut(Element element)
          Allow specialised actions over adding the element to the map.
 void MemoryStore.removeAll()
          Remove all of the elements from the store.
protected  void MemoryStore.notifyingRemoveAll()
          If there are registered CacheEventListeners they are notified of the expiry or removal of the Element as each is removed.
 long MemoryStore.getSizeInBytes()
          Measures the size of the memory store by measuring the serialized size of all elements.
protected  void MemoryStore.evict(Element element)
          Evict the Element.
 

Uses of CacheException in net.sf.ehcache.util
 

Methods in net.sf.ehcache.util that throw CacheException
static java.lang.Object ClassLoaderUtil.createNewInstance(java.lang.String className)
          Creates a new class instance.
 


ehcache

true