Class BoundedLocalCache.UpdateTask

  • All Implemented Interfaces:
    java.lang.Runnable
    Enclosing class:
    BoundedLocalCache<K,​V>

    final class BoundedLocalCache.UpdateTask
    extends java.lang.Object
    implements java.lang.Runnable
    Updates the weighted size and evicts an entry on overflow.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) Node<K,​V> node  
      (package private) int weightDifference  
    • Constructor Summary

      Constructors 
      Constructor Description
      UpdateTask​(Node<K,​V> node, int weightDifference)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • weightDifference

        final int weightDifference
      • node

        final Node<K,​V> node
    • Constructor Detail

      • UpdateTask

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

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable