public class BufferCache extends OverflowingLRUCache
IBuffers.LRUCache.LRUCacheEntry, LRUCache.StatsloadFactor, overflow, timestampsOncurrentSpace, DEFAULT_SPACELIMIT, entryQueue, entryQueueTail, entryTable, spaceLimit, timestampCounter| Constructor and Description |
|---|
BufferCache(int size)
Constructs a new buffer cache of the given size.
|
BufferCache(int size,
int overflow)
Constructs a new buffer cache of the given size.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
close(LRUCache.LRUCacheEntry entry)
Returns true if the buffer is successfully closed and
removed from the cache, otherwise false.
|
protected LRUCache |
newInstance(int size,
int newOverflow)
Returns a new instance of the reciever.
|
clone, elements, fillingRatio, getEntryTable, getLoadFactor, getOverflow, makeSpace, printStats, privateRemoveEntry, privateRemoveEntry, put, remove, setLoadFactor, setSpaceLimit, shrink, toString, updateTimestampflush, flush, get, getCurrentSpace, getKey, getNewestTimestampCounter, getOldestElement, getOldestTimestampCounter, getSpaceLimit, keys, keysAndValues, newInstance, peek, privateAdd, privateAddEntry, removeKey, spaceFor, toStringContents, toStringFillingRationpublic BufferCache(int size)
public BufferCache(int size,
int overflow)
protected boolean close(LRUCache.LRUCacheEntry entry)
NOTE: this triggers an external removal of this buffer by closing the buffer.
close in class OverflowingLRUCacheprotected LRUCache newInstance(int size, int newOverflow)
newInstance in class OverflowingLRUCache