org.objectweb.perseus.cache.api
Interface UnbindManager
- ReplacementManager
- AbstractReplacementManager, BasicCacheManager, FIFOReplacementManager, LRUReplacementManager, MRUReplacementManager
public interface UnbindManager
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.
- Luciano Garcia-Banuelos (Luciano.Garcia@imag.fr)
boolean | unbind(Object oid, boolean force) - Evicts an instance from the cache.
|
Collection | unbindAll(Collection oids, boolean force) - Evicts instances from the cache.
|
Collection | unbindUnfixed(boolean force) - Try to evict unfixed instances.
|
unbind
public boolean unbind(Object oid,
boolean force)
throws CacheException
Evicts an instance from the cache.
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.
unbindAll
public Collection unbindAll(Collection oids,
boolean force)
throws CacheException
Evicts instances from the cache.
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.
- the oid of the really evicted entries
CacheException
- is raised when entries are already unbound from
the cache.
unbindUnfixed
public Collection unbindUnfixed(boolean force)
throws CacheException
Try to evict unfixed instances.
force
- is a boolean value indicating if the cache must remove the
entries or let the GC does its job.
- the number of entry really evicted
CacheException
-
Copyright © 2000-2002 France Telecom S.A., INRIA, IMAG-LSR All Rights Reserved.