ehcache

Uses of Class
net.sf.ehcache.Element

Packages that use Element
net.sf.ehcache This package contains the public API for using ehcache. 
net.sf.ehcache.constructs.blocking Doug Lea in his book Concurrent Programming in Java talks about concurrency support constructs. 
net.sf.ehcache.distribution This package is for cache replication. 
net.sf.ehcache.distribution.jgroups This package is for cache replication using Jgroups. 
net.sf.ehcache.event This package contains interfaces and classes for listening to events. 
net.sf.ehcache.jcache This package contains an implementation of JSR-107: the JCACHE API. 
net.sf.ehcache.store Store package. 
 

Uses of Element in net.sf.ehcache
 

Methods in net.sf.ehcache that return Element
 Element Ehcache.get(java.lang.Object key)
          Gets an element from the cache.
 Element Cache.get(java.lang.Object key)
          Gets an element from the cache.
 Element Ehcache.get(java.io.Serializable key)
          Gets an element from the cache.
 Element Cache.get(java.io.Serializable key)
          Gets an element from the cache.
 Element Ehcache.getQuiet(java.lang.Object 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.
 Element Ehcache.getQuiet(java.io.Serializable 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.
 Element Ehcache.getWithLoader(java.lang.Object key, CacheLoader loader, java.lang.Object loaderArgument)
          Warning: This method is related to the JSR107 specification, which is in draft.
 Element Cache.getWithLoader(java.lang.Object key, CacheLoader loader, java.lang.Object loaderArgument)
          Warning: This method is related to the JSR107 specification, which is in draft.
 

Methods in net.sf.ehcache with parameters of type Element
 boolean Ehcache.isExpired(Element element)
          Checks whether this cache element has expired.
 boolean Cache.isExpired(Element element)
          Checks whether this cache element has expired.
 void Ehcache.put(Element element)
          Put an element in the cache.
 void Cache.put(Element element)
          Put an element in the cache.
 void Ehcache.put(Element element, boolean doNotNotifyCacheReplicators)
          Put an element in the cache.
 void Cache.put(Element element, boolean doNotNotifyCacheReplicators)
          Put an element in the cache.
 void Ehcache.putQuiet(Element element)
          Put an element in the cache, without updating statistics, or updating listeners.
 void Cache.putQuiet(Element element)
          Put an element in the cache, without updating statistics, or updating listeners.
 

Uses of Element in net.sf.ehcache.constructs.blocking
 

Methods in net.sf.ehcache.constructs.blocking that return Element
 Element UpdatingSelfPopulatingCache.get(java.lang.Object key)
          Looks up an object.
 Element SelfPopulatingCache.get(java.lang.Object key)
          Looks up an entry.
 Element BlockingCache.get(java.lang.Object key)
          Looks up an entry.
 Element BlockingCache.get(java.io.Serializable key)
          Gets an element from the cache.
 Element BlockingCache.getQuiet(java.lang.Object key)
          Gets an element from the cache, without updating Element statistics.
 Element BlockingCache.getQuiet(java.io.Serializable key)
          Gets an element from the cache, without updating Element statistics.
 Element BlockingCache.getWithLoader(java.lang.Object key, CacheLoader loader, java.lang.Object loaderArgument)
          This method is not appropriate to use with BlockingCache.
 

Methods in net.sf.ehcache.constructs.blocking with parameters of type Element
 boolean BlockingCache.isExpired(Element element)
          Checks whether this cache element has expired.
 void BlockingCache.put(Element element)
          Adds an entry and unlocks it
 void BlockingCache.put(Element element, boolean doNotNotifyCacheReplicators)
          Put an element in the cache.
 void BlockingCache.putQuiet(Element element)
          Put an element in the cache, without updating statistics, or updating listeners.
protected  void SelfPopulatingCache.refreshElement(Element element, Ehcache backingCache)
          Refresh a single element.
 

Uses of Element in net.sf.ehcache.distribution
 

Methods in net.sf.ehcache.distribution that return Element
 Element EventMessage.getElement()
           
 Element RMICachePeer.getQuiet(java.io.Serializable key)
          Gets an element from the cache, without updating Element statistics.
 Element CachePeer.getQuiet(java.io.Serializable key)
          Gets an element from the cache, without updating Element statistics.
 

Methods in net.sf.ehcache.distribution with parameters of type Element
 void RMISynchronousCacheReplicator.notifyElementEvicted(Ehcache cache, Element element)
          Called immediately after an element is evicted from the cache.
 void RMISynchronousCacheReplicator.notifyElementExpired(Ehcache cache, Element element)
          Called immediately after an element is found to be expired.

This implementation does not propagate expiries.

 void RMISynchronousCacheReplicator.notifyElementPut(Ehcache cache, Element element)
          Called immediately after an element has been put into the cache.
 void RMIAsynchronousCacheReplicator.notifyElementPut(Ehcache cache, Element element)
          Called immediately after an element has been put into the cache.

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

 void RMISynchronousCacheReplicator.notifyElementRemoved(Ehcache cache, Element element)
          Called immediately after an attempt to remove an element.
 void RMIAsynchronousCacheReplicator.notifyElementRemoved(Ehcache cache, Element element)
          Called immediately after an attempt to remove an element.
 void RMISynchronousCacheReplicator.notifyElementUpdated(Ehcache cache, Element element)
          Called immediately after an element has been put into the cache and the element already existed in the cache.
 void RMIAsynchronousCacheReplicator.notifyElementUpdated(Ehcache cache, Element element)
          Called immediately after an element has been put into the cache and the element already existed in the cache.
 void RMICachePeer.put(Element element)
          Puts an Element into the underlying cache without notifying listeners or updating statistics.
 void CachePeer.put(Element element)
          Put an element in the cache.
 

Constructors in net.sf.ehcache.distribution with parameters of type Element
EventMessage(int event, java.io.Serializable key, Element element)
          Full constructor.
 

Uses of Element in net.sf.ehcache.distribution.jgroups
 

Methods in net.sf.ehcache.distribution.jgroups that return Element
 Element JGroupManager.getQuiet(java.io.Serializable key)
          Gets an element from the cache, without updating Element statistics.
 

Methods in net.sf.ehcache.distribution.jgroups with parameters of type Element
 void JGroupsCacheReplicator.notifyElementEvicted(Ehcache cache, Element element)
          Called immediately after an element is evicted from the cache.
 void JGroupsCacheReplicator.notifyElementExpired(Ehcache cache, Element element)
          Called immediately after an element is found to be expired.
 void JGroupsCacheReplicator.notifyElementPut(Ehcache cache, Element element)
          Called immediately after an element has been put into the cache.
 void JGroupsCacheReplicator.notifyElementRemoved(Ehcache cache, Element element)
          Called immediately after an attempt to remove an element.
 void JGroupsCacheReplicator.notifyElementUpdated(Ehcache cache, Element element)
          Called immediately after an element has been put into the cache and the element already existed in the cache.
 void JGroupManager.put(Element element)
          Put an element in the cache.
 

Constructors in net.sf.ehcache.distribution.jgroups with parameters of type Element
JGroupEventMessage(int event, java.io.Serializable key, Element element, Ehcache cache, java.lang.String cacheName)
          An event message for the JGroupsCacheReplicator.
 

Uses of Element in net.sf.ehcache.event
 

Methods in net.sf.ehcache.event with parameters of type Element
 void CacheEventListener.notifyElementEvicted(Ehcache cache, Element element)
          Called immediately after an element is evicted from the cache.
 void RegisteredEventListeners.notifyElementEvicted(Element element, boolean remoteEvent)
          Notifies all registered listeners, in no guaranteed order, that an element has been evicted from the cache
 void CacheEventListener.notifyElementExpired(Ehcache cache, Element element)
          Called immediately after an element is found to be expired.
 void RegisteredEventListeners.notifyElementExpiry(Element element, boolean remoteEvent)
          Notifies all registered listeners, in no guaranteed order, that an element has expired
 void CacheEventListener.notifyElementPut(Ehcache 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(Ehcache cache, Element element)
          Called immediately after an attempt to remove an element.
 void RegisteredEventListeners.notifyElementRemoved(Element element, boolean remoteEvent)
          Notifies all registered listeners, in no guaranteed order, that an element was removed
 void CacheEventListener.notifyElementUpdated(Ehcache cache, Element element)
          Called immediately after an element has been put into the cache and the element already existed in the cache.
 void RegisteredEventListeners.notifyElementUpdated(Element element, boolean remoteEvent)
          Notifies all registered listeners, in no guaranteed order, that an element in the cache was updated
 

Uses of Element in net.sf.ehcache.jcache
 

Methods in net.sf.ehcache.jcache with parameters of type Element
 void JCacheListenerAdaptor.notifyElementEvicted(Ehcache cache, Element element)
          Called immediately after an element is evicted from the cache.
 void JCacheListenerAdaptor.notifyElementExpired(Ehcache cache, Element element)
          Called immediately after an element is found to be expired.
 void JCacheListenerAdaptor.notifyElementPut(Ehcache cache, Element element)
          Called immediately after an element has been put into the cache.
 void JCacheListenerAdaptor.notifyElementRemoved(Ehcache cache, Element element)
          Called immediately after an element has been removed.
 void JCacheListenerAdaptor.notifyElementUpdated(Ehcache cache, Element element)
          Called immediately after an element has been put into the cache and the element already existed in the cache.
 

Constructors in net.sf.ehcache.jcache with parameters of type Element
JCacheEntry(Element element)
          Constructor
 

Uses of Element in net.sf.ehcache.store
 

Methods in net.sf.ehcache.store that return Element
(package private)  Element LfuMemoryStore.findRelativelyUnused(Element elementJustAdded)
          Find a "relatively" unused element, but not the element just added.
 Element Store.get(java.lang.Object key)
          Gets an item from the cache.
 Element MemoryStore.get(java.lang.Object key)
          Gets an item from the cache.
 Element DiskStore.get(java.lang.Object key)
          Gets an Element from the Disk Store.
(package private)  Element FifoMemoryStore.getFirstElement()
          Returns the first eligible element that can be taken out of the cache based on the FIFO policy
 Element Store.getQuiet(java.lang.Object key)
          Gets an Element from the Store, without updating statistics
 Element MemoryStore.getQuiet(java.lang.Object key)
          Gets an item from the cache, without updating statistics.
 Element DiskStore.getQuiet(java.lang.Object key)
          Gets an Element from the Disk Store, without updating statistics
 Element Store.remove(java.lang.Object key)
          Removes an item from the cache.
 Element MemoryStore.remove(java.lang.Object key)
          Removes an Element from the store.
 Element DiskStore.remove(java.lang.Object key)
          Removes an item from the disk store.
 

Methods in net.sf.ehcache.store with parameters of type Element
protected  void MemoryStore.doPut(Element element)
          Allow specialised actions over adding the element to the map.
 void LfuMemoryStore.doPut(Element elementJustAdded)
          Puts an element into the cache.
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.
(package private)  Element LfuMemoryStore.findRelativelyUnused(Element elementJustAdded)
          Find a "relatively" unused element, but not the element just added.
protected  void MemoryStore.notifyExpiry(Element element)
          Before eviction elements are checked.
 void Store.put(Element element)
          Puts an item into the cache.
 void MemoryStore.put(Element element)
          Puts an item in the cache.
 void DiskStore.put(Element element)
          Puts an element into the disk store.
protected  void MemoryStore.spoolToDisk(Element element)
          Puts the element in the DiskStore.
 


ehcache