jason.core.cache
Interface CacheStrategy

All Known Implementing Classes:
SizeCacheStrategyImpl

public interface CacheStrategy

Created Fri May 10 14:03:49 2002

This interface is a delegate for the Cache interface. This is a good way for deciding how to garbage cache element. For instance a strategy could be to remove is needed the older cache item, or the less needed...


Method Summary
 void garbageCache(Cache cache, java.util.AbstractList list)
          This method is called by the Cache each time an item is added by the storeObject method
 

Method Detail

garbageCache

public void garbageCache(Cache cache,
                         java.util.AbstractList list)
This method is called by the Cache each time an item is added by the storeObject method

Parameters:
cache - the cache to garbage
list - is a dataModel for the cache, the tied classed will alter this content. This dataModel contains a set of object key