Class BoundedLocalCache.UpdateTask

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 Details

    • weightDifference

      final int weightDifference
    • node

      final Node<K,V> node
  • Constructor Details

    • UpdateTask

      public UpdateTask(Node<K,V> node, int weightDifference)
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable