public class SlidingExpirationCacheWithCleanupThread<K,V> extends SlidingExpirationCache<K,V>
| Modifier and Type | Field and Description |
|---|---|
protected java.util.concurrent.ExecutorService |
cleanupThreadPool |
protected java.util.concurrent.locks.ReentrantLock |
initLock |
protected boolean |
isInitialized |
cache, cleanupIntervalNanos, cleanupTimeNanos, itemDisposalFunc, shouldDisposeFunc| Constructor and Description |
|---|
SlidingExpirationCacheWithCleanupThread() |
SlidingExpirationCacheWithCleanupThread(ShouldDisposeFunc<V> shouldDisposeFunc,
ItemDisposalFunc<V> itemDisposalFunc) |
SlidingExpirationCacheWithCleanupThread(ShouldDisposeFunc<V> shouldDisposeFunc,
ItemDisposalFunc<V> itemDisposalFunc,
long cleanupIntervalNanos) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanUp() |
protected void |
initCleanupThread() |
clear, computeIfAbsent, get, getEntries, put, remove, removeAndDispose, removeIfExpired, setCleanupIntervalNanos, setShouldDisposeFunc, sizeprotected final java.util.concurrent.ExecutorService cleanupThreadPool
protected final java.util.concurrent.locks.ReentrantLock initLock
protected boolean isInitialized
public SlidingExpirationCacheWithCleanupThread()
public SlidingExpirationCacheWithCleanupThread(ShouldDisposeFunc<V> shouldDisposeFunc, ItemDisposalFunc<V> itemDisposalFunc)
public SlidingExpirationCacheWithCleanupThread(ShouldDisposeFunc<V> shouldDisposeFunc, ItemDisposalFunc<V> itemDisposalFunc, long cleanupIntervalNanos)
protected void initCleanupThread()
protected void cleanUp()
cleanUp in class SlidingExpirationCache<K,V>