/** * this item is just added to the cache * @param item <code>CacheItem</code> that was created * @return a overflow item; may be null * Cache bucket is already synchronized by the caller * * Here, if cache is overflowing (i.e. reached threshold); this class * simply makes the cache unbounded by raising the threshold. Subclasses * are expected to provide a robust cache replacement algorithm. * * Subclasses should enhance this implemntation. */ protected CacheItem itemAdded(CacheItem item) { if (isThresholdReached()) { handleOverflow(); } return null; }
/** * this item is just added to the cache * @param item <code>CacheItem</code> that was created * @return a overflow item; may be null * Cache bucket is already synchronized by the caller * * Here, if cache is overflowing (i.e. reached threshold); this class * simply makes the cache unbounded by raising the threshold. Subclasses * are expected to provide a robust cache replacement algorithm. * * Subclasses should enhance this implemntation. */ protected CacheItem itemAdded(CacheItem item) { if (isThresholdReached()) { handleOverflow(); } return null; }
/** * this item is just added to the cache * @param item <code>CacheItem</code> that was created * @return a overflow item; may be null * Cache bucket is already synchronized by the caller * * Here, if cache is overflowing (i.e. reached threshold); this class * simply makes the cache unbounded by raising the threshold. Subclasses * are expected to provide a robust cache replacement algorithm. * * Subclasses should enhance this implemntation. */ protected CacheItem itemAdded(CacheItem item) { if (isThresholdReached()) { handleOverflow(); } return null; }
/** * this item is just added to the cache * @param item <code>CacheItem</code> that was created * @return a overflow item; may be null * Cache bucket is already synchronized by the caller * * Here, if cache is overflowing (i.e. reached threshold); this class * simply makes the cache unbounded by raising the threshold. Subclasses * are expected to provide a robust cache replacement algorithm. * * Subclasses should enhance this implemntation. */ protected CacheItem itemAdded(CacheItem item) { if (isThresholdReached()) { handleOverflow(); } return null; }