|
ehcache | |||||||||
PREV NEXT | FRAMES NO FRAMES |
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 |
CacheManager.addCache(Cache cache)
Adds a Cache to the CacheManager. |
void |
CacheManager.addCache(java.lang.String cacheName)
Adds a Cache based on the defaultCache with the given name. |
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.create(java.io.InputStream inputStream)
A factory method to create a singleton CacheManager from a java.io.InputStream. |
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. |
void |
Cache.flush()
Flushes all cache items from memory to the disk store, and from the DiskStore to disk. |
Element |
Cache.get(java.lang.Object key)
Gets an element from the cache. |
Element |
Cache.get(java.io.Serializable key)
Gets an element from the cache. |
static CacheManager |
CacheManager.getInstance()
A factory method to create a singleton CacheManager with default config, or return it if it exists. |
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. |
Element |
Cache.getQuiet(java.lang.Object key)
Gets an element from the cache, without updating Element statistics. |
Element |
Cache.getQuiet(java.io.Serializable key)
Gets an element from the cache, without updating Element statistics. |
int |
Cache.getSize()
Gets the size of the cache. |
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. |
void |
Cache.removeAll()
Removes all cached items. |
Constructors in net.sf.ehcache that throw CacheException | |
---|---|
CacheManager()
Constructor. |
|
CacheManager(Configuration configuration)
An constructor for CacheManager, which takes a configuration object, rather than one created by parsing an ehcache.xml file. |
|
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. |
Uses of CacheException in net.sf.ehcache.config |
---|
Methods in net.sf.ehcache.config that throw CacheException | |
---|---|
CacheManagerEventListener |
ConfigurationHelper.createCacheManagerEventListener()
Tries to load the class specified. |
Cache |
ConfigurationHelper.createDefaultCache()
|
static Configuration |
ConfigurationFactory.parseConfiguration()
Configures a bean from an XML file in the classpath. |
static Configuration |
ConfigurationFactory.parseConfiguration(java.io.File file)
Configures a bean from an XML file. |
static Configuration |
ConfigurationFactory.parseConfiguration(java.io.InputStream inputStream)
Configures a bean from an XML input stream. |
static Configuration |
ConfigurationFactory.parseConfiguration(java.net.URL url)
Configures a bean from an XML file available as an URL. |
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 | |
---|---|
CacheManagerPeerListener |
RMICacheManagerPeerListenerFactory.createCachePeerListener(CacheManager cacheManager,
java.util.Properties properties)
|
CacheManagerPeerProvider |
RMICacheManagerPeerProviderFactory.createCachePeerProvider(CacheManager cacheManager,
java.util.Properties properties)
|
void |
CacheManagerPeerProvider.dispose()
Providers may be doing all sorts of exotic things and need to be able to clean up on dispose. |
void |
RMICacheManagerPeerListener.dispose()
Stop the listener. |
void |
RMICacheManagerPeerProvider.dispose()
Providers may be doing all sorts of exotic things and need to be able to clean up on dispose. |
void |
CacheManagerPeerListener.dispose()
Stop the listener and free any resources. |
void |
MulticastRMICacheManagerPeerProvider.init()
Notifies providers to initialise themselves. |
void |
RMICacheManagerPeerListener.init()
Call to start the listeners and do any other network initialisation. |
void |
CacheManagerPeerListener.init()
Call to start the listeners and do any other network initialisation. |
(package private) java.lang.String[] |
RMICacheManagerPeerListener.listBoundRMICachePeers()
Returns a list of bound objects. |
java.util.List |
MulticastRMICacheManagerPeerProvider.listRemoteCachePeers(Cache cache)
|
java.util.List |
ManualRMICacheManagerPeerProvider.listRemoteCachePeers(Cache cache)
|
java.util.List |
CacheManagerPeerProvider.listRemoteCachePeers(Cache cache)
|
abstract java.util.List |
RMICacheManagerPeerProvider.listRemoteCachePeers(Cache cache)
|
(package private) java.rmi.Remote |
RMICacheManagerPeerListener.lookupPeer(java.lang.String name)
Returns a reference to the remote object. |
void |
RMIAsynchronousCacheReplicator.notifyElementPut(Cache cache,
Element element)
Called immediately after an element has been put into the cache. |
void |
RMISynchronousCacheReplicator.notifyElementPut(Cache cache,
Element element)
Called immediately after an element has been put into the cache. |
void |
RMIAsynchronousCacheReplicator.notifyElementRemoved(Cache cache,
Element element)
Called immediately after an element has been removed. |
void |
RMISynchronousCacheReplicator.notifyElementRemoved(Cache cache,
Element element)
Called immediately after an element has been removed. |
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 |
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. |
Uses of CacheException in net.sf.ehcache.event |
---|
Methods in net.sf.ehcache.event that throw CacheException | |
---|---|
void |
CacheEventListener.notifyElementPut(Cache cache,
Element element)
Called immediately after an element has been put into the cache. |
void |
RegisteredEventListeners.notifyElementPut(Element element,
boolean remoteEvent)
Notifies all registered listeners, in no guaranteed order, that an element was put into the cache |
void |
CacheEventListener.notifyElementRemoved(Cache cache,
Element element)
Called immediately after an element has been removed. |
void |
RegisteredEventListeners.notifyElementRemoved(Element element,
boolean remoteEvent)
Notifies all registered listeners, in no guaranteed order, that an element was removed |
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. |
Uses of CacheException in net.sf.ehcache.store |
---|
Methods in net.sf.ehcache.store that throw CacheException | |
---|---|
protected void |
MemoryStore.doPut(Element element)
Allow specialised actions over adding the element to the map. |
protected void |
FifoMemoryStore.doPut(Element element)
Allow specialised actions over adding the element to the map |
protected void |
MemoryStore.evict(Element element)
Evict the Element . |
long |
MemoryStore.getSizeInBytes()
Measures the size of the memory store by measuring the serialized size of all elements. |
protected void |
MemoryStore.notifyingRemoveAll()
If there are registered CacheEventListener s they are notified of the expiry or removal
of the Element as each is removed. |
void |
Store.put(Element element)
Puts an item into the cache. |
void |
MemoryStore.put(Element element)
Puts an item in the cache. |
void |
Store.removeAll()
Remove all of the elements from the store. |
void |
MemoryStore.removeAll()
Remove all of the elements from the store. |
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 | |||||||||
PREV NEXT | FRAMES NO FRAMES |