- getMaxSize
- shouldEvict
This method is thread safe.
- <init>
Default constructor.
- addToCurrentSize
Adds size value to the current size. This method is thread safe.
- clearAll
- evict
The executing thread will wait until the current occupancy percentage of the
buffer is smaller than
- getAnalyzedElements
Returns the number of analyzed elements since the buffer has been created.
- getCurrentSize
- getEvictedElemenets
Returns the number of evicted elements since the buffer has been created.
- getIndexedElements
Returns the number of indexed elements since the buffer has been created.
- getInsertedElemenets
Returns the number of inserted elements since the buffer has been created.
- notifyEvictionIfNeeded
Checks if the eviction should start, and if it does notifies the right thread.