|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is used by the replacement manager to evict an instance from the cache. The primitive CacheManager component and the replacement manager implement this interface. In some implementation the instance is not evicted on the call of the unbind method weither the java Garbage Collector and the strengh link to entry.
Method Summary | |
java.util.Collection |
unbind(CacheEntryFilter filter,
boolean force)
Evicts the entries which are accepted by the filter. |
boolean |
unbind(java.lang.Object oid,
boolean force)
Evicts an instance from the cache. |
java.util.Collection |
unbindAll(java.util.Collection oids,
boolean force)
Evicts instances from the cache. |
java.util.Collection |
unbindUnfixed(boolean force)
Try to evict unfixed instances. |
Method Detail |
public boolean unbind(java.lang.Object oid, boolean force) throws CacheException
oid
- is the identifier associated to the cache entry to evictforce
- is a boolean value indicating if the cache must remove the
entry or let the GC does its job.
CacheException
- is raised when the entry is already unbound from
the cache.public java.util.Collection unbindAll(java.util.Collection oids, boolean force) throws CacheException
oids
- is a collection of the identifier associated to cache entries
to evictforce
- is a boolean value indicating if the cache must remove the
entries or let the GC does its job.
CacheException
- is raised when entries are already unbound from
the cache.public java.util.Collection unbindUnfixed(boolean force) throws CacheException
force
- is a boolean value indicating if the cache must remove the
entries or let the GC does its job.
CacheException
public java.util.Collection unbind(CacheEntryFilter filter, boolean force) throws CacheException
filter
- is a cacheentry filter indicating wich entry has to be
evictedforce
- is a boolean value indicating if the cache must remove the
entries or let the GC does its job.
CacheException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |