ehcache

Uses of Class
net.sf.ehcache.Cache

Packages that use Cache
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.hibernate This package contains interfaces and classes for Hibernate3.1 and higher. 
net.sf.ehcache.store Store package. 
 

Uses of Cache in net.sf.ehcache
 

Methods in net.sf.ehcache that return Cache
 Cache CacheManager.getCache(java.lang.String name)
          Gets a Cache
 

Methods in net.sf.ehcache with parameters of type Cache
 void CacheManager.addCache(Cache cache)
          Adds a Cache to the CacheManager.
 

Uses of Cache in net.sf.ehcache.config
 

Methods in net.sf.ehcache.config that return Cache
 Cache ConfigurationHelper.createDefaultCache()
           
 

Uses of Cache in net.sf.ehcache.distribution
 

Methods in net.sf.ehcache.distribution with parameters of type Cache
 java.util.List CacheManagerPeerProvider.listRemoteCachePeers(Cache cache)
           
 void RMIAsynchronousCacheReplicator.notifyElementPut(Cache cache, Element element)
          Called immediately after an element has been put into the cache. The 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.
 java.util.List MulticastRMICacheManagerPeerProvider.listRemoteCachePeers(Cache cache)
           
abstract  java.util.List RMICacheManagerPeerProvider.listRemoteCachePeers(Cache cache)
           
 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.
 void RMISynchronousCacheReplicator.notifyElementExpired(Cache cache, Element element)
          Called immediately after an element is found to be expired. The remove(Object) method will block until this method returns.

As the Element has been expired, only what was the key of the element is known.

Elements are checked for expiry in ehcache at the following times:

  • When a get request is made
  • When an element is spooled to the diskStore in accordance with a MemoryStore eviction policy
  • In the DiskStore when the expiry thread runs, which by default is DEFAULT_EXPIRY_THREAD_INTERVAL_SECONDS
If an element is found to be expired, it is deleted and this method is notified.

This implementation does not propagate expiries.

 java.util.List ManualRMICacheManagerPeerProvider.listRemoteCachePeers(Cache cache)
           
 

Constructors in net.sf.ehcache.distribution with parameters of type Cache
RMICachePeer(Cache cache, java.lang.String hostName, java.lang.Integer port, java.lang.Integer socketTimeoutMillis)
          Construct a new remote peer.
 

Uses of Cache in net.sf.ehcache.event
 

Methods in net.sf.ehcache.event with parameters of type Cache
 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 CacheEventListener.notifyElementExpired(Cache cache, Element element)
          Called immediately after an element is found to be expired.
 

Constructors in net.sf.ehcache.event with parameters of type Cache
RegisteredEventListeners(Cache cache)
          Constructs a new notification service
 

Uses of Cache in net.sf.ehcache.hibernate
 

Constructors in net.sf.ehcache.hibernate with parameters of type Cache
EhCache(Cache cache)
          Creates a new Hibernate pluggable cache by name.
 

Uses of Cache in net.sf.ehcache.store
 

Fields in net.sf.ehcache.store declared as Cache
protected  Cache MemoryStore.cache
          The cache this store is associated with.
 

Methods in net.sf.ehcache.store with parameters of type Cache
static MemoryStore MemoryStore.create(Cache cache, DiskStore diskStore)
          A factory method to create a MemoryStore.
 

Constructors in net.sf.ehcache.store with parameters of type Cache
DiskStore(Cache cache, java.lang.String diskPath)
          Creates a disk store.
FifoMemoryStore(Cache cache, DiskStore diskStore)
          Constructor for the FifoMemoryStore object.
LruMemoryStore(Cache cache, DiskStore diskStore)
          Constructor for the LruMemoryStore object The backing LinkedHashMap is created with LRU by access order.
LfuMemoryStore(Cache cache, DiskStore diskStore)
          Constructor for the LfuMemoryStore object.
MemoryStore(Cache cache, DiskStore diskStore)
          Constructs things that all MemoryStores have in common.
 


ehcache

true