java.lang.Object
com.github.benmanes.caffeine.cache.BoundedLocalCache.UpdateTask
- All Implemented Interfaces:
Runnable
- Enclosing class:
- BoundedLocalCache<K,V>
final class BoundedLocalCache.UpdateTask
extends Object
implements Runnable
Updates the weighted size and evicts an entry on overflow.
-
Field Summary
Fields
(package private) final Node<K,V>
(package private) final int
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
weightDifference
final int weightDifference
-
-
Constructor Details
-
UpdateTask
public UpdateTask(Node<K,V> node,
int weightDifference)
-
Method Details
-
run
public void run()
- Specified by:
run
in interface Runnable