org.jwarp.service.cache
Interface ICacheAware
- public interface ICacheAware
This interface can optionally implemented by all objects stored in a cache. The cache then will inform the object
that the object is stored, removed to the cache instance. If an object is member in several caches then each cache
will call the methods below passing its instance.
|
Method Summary |
void |
cacheAdded(ICache cache)
This method is called when the object is added to the cache. |
void |
cacheRemoved(ICache cache,
boolean manual)
This method is called when the instance was removed from the cache (thru a manual or an automatic update). |
void |
cacheRequested(ICache cache)
This method is called whenever an this instance is called to be delivered from the cache. |
cacheRequested
public void cacheRequested(ICache cache)
- This method is called whenever an this instance is called to be delivered from the cache.
cacheAdded
public void cacheAdded(ICache cache)
- This method is called when the object is added to the cache.
cacheRemoved
public void cacheRemoved(ICache cache,
boolean manual)
- This method is called when the instance was removed from the cache (thru a manual or an automatic update).