All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface sun.server.util.CacheReplacer

public interface CacheReplacer
The interface to the cache replacement objects. This interface provides a way of choosing which entries might be replaced from the cache.


Method Index

 o chooseReplacements(DiskCache, int)
This method chooses the list of cache entrie that should be replaced using a policy that is implementation specific.

Methods

 o chooseReplacements
 public abstract Enumeration chooseReplacements(DiskCache diskCache,
                                                int numBytesToFree)
This method chooses the list of cache entrie that should be replaced using a policy that is implementation specific.

Parameters:
diskCache - the disk cache that has to have space freed.
numBytesToFree - the number of bytes that must be freed in the disk cache passed.
Returns:
the list of DiskCacheEntry objects that must be replaced in the disk cache. When all the entries in the returned list is freed, atleast the requested number of bytes is guaranteed to be available.

All Packages  Class Hierarchy  This Package  Previous  Next  Index