oldSize = oldItem.getSize(); oldValue = oldItem.refreshValue(value, size); itemRefreshed(oldItem, oldSize);
oldSize = oldItem.getSize(); oldValue = oldItem.refreshValue(value, size); itemRefreshed(oldItem, oldSize);
oldSize = oldItem.getSize(); oldValue = oldItem.refreshValue(value, size); itemRefreshed(oldItem, oldSize);
oldSize = oldItem.getSize(); oldValue = oldItem.refreshValue(value, size); itemRefreshed(oldItem, oldSize);
/** * 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 */ protected CacheItem itemAdded(CacheItem item) { LruCacheItem overflow = (LruCacheItem) super.itemAdded(item); // update the size if (overflow != null) { decrementCurrentSize(overflow.getSize()); } incrementCurrentSize(item.getSize()); return overflow; }
/** * 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 */ protected CacheItem itemAdded(CacheItem item) { LruCacheItem overflow = (LruCacheItem) super.itemAdded(item); // update the size if (overflow != null) { decrementCurrentSize(overflow.getSize()); } incrementCurrentSize(item.getSize()); return overflow; }
/** * 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 */ protected CacheItem itemAdded(CacheItem item) { LruCacheItem overflow = (LruCacheItem) super.itemAdded(item); // update the size if (overflow != null) { decrementCurrentSize(overflow.getSize()); } incrementCurrentSize(item.getSize()); return overflow; }
/** * 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 */ protected CacheItem itemAdded(CacheItem item) { LruCacheItem overflow = (LruCacheItem) super.itemAdded(item); // update the size if (overflow != null) { decrementCurrentSize(overflow.getSize()); } incrementCurrentSize(item.getSize()); return overflow; }
/** * item value has been refreshed * @param item <code>CacheItem</code> that was refreshed * @param oldSize size of the previous value that was refreshed * Cache bucket is already synchronized by the caller */ protected void itemRefreshed(CacheItem item, int oldSize) { super.itemRefreshed(item, oldSize); /** reduce the cache by the size of the size of the previous value * and increment by the value being refreshed with. */ decrementCurrentSize(oldSize); incrementCurrentSize(item.getSize()); }
/** * item value has been refreshed * @param item <code>CacheItem</code> that was refreshed * @param oldSize size of the previous value that was refreshed * Cache bucket is already synchronized by the caller */ protected void itemRefreshed(CacheItem item, int oldSize) { super.itemRefreshed(item, oldSize); /** reduce the cache by the size of the size of the previous value * and increment by the value being refreshed with. */ decrementCurrentSize(oldSize); incrementCurrentSize(item.getSize()); }
/** * item value has been refreshed * @param item <code>CacheItem</code> that was refreshed * @param oldSize size of the previous value that was refreshed * Cache bucket is already synchronized by the caller */ protected void itemRefreshed(CacheItem item, int oldSize) { super.itemRefreshed(item, oldSize); /** reduce the cache by the size of the size of the previous value * and increment by the value being refreshed with. */ decrementCurrentSize(oldSize); incrementCurrentSize(item.getSize()); }
/** * item value has been refreshed * @param item <code>CacheItem</code> that was refreshed * @param oldSize size of the previous value that was refreshed * Cache bucket is already synchronized by the caller */ protected void itemRefreshed(CacheItem item, int oldSize) { super.itemRefreshed(item, oldSize); /** reduce the cache by the size of the size of the previous value * and increment by the value being refreshed with. */ decrementCurrentSize(oldSize); incrementCurrentSize(item.getSize()); }
/** * item value has been removed from the cache * @param item <code>CacheItem</code> that was just removed * * Cache bucket is already synchronized by the caller */ protected void itemRemoved(CacheItem item) { super.itemRemoved(item); // update the size decrementCurrentSize(item.getSize()); }
/** * item value has been removed from the cache * @param item <code>CacheItem</code> that was just removed * * Cache bucket is already synchronized by the caller */ protected void itemRemoved(CacheItem item) { super.itemRemoved(item); // update the size decrementCurrentSize(item.getSize()); }
/** * item value has been removed from the cache * @param item <code>CacheItem</code> that was just removed * * Cache bucket is already synchronized by the caller */ protected void itemRemoved(CacheItem item) { super.itemRemoved(item); // update the size decrementCurrentSize(item.getSize()); }
/** * item value has been removed from the cache * @param item <code>CacheItem</code> that was just removed * * Cache bucket is already synchronized by the caller */ protected void itemRemoved(CacheItem item) { super.itemRemoved(item); // update the size decrementCurrentSize(item.getSize()); }