Class DfsBlockCache.Ref<T>

  • Enclosing class:
    DfsBlockCache

    static final class DfsBlockCache.Ref<T>
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Ref​(DfsStreamKey key, long position, long size, T v)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) T get()  
      (package private) boolean has()  
      (package private) boolean isHot()  
      (package private) void markColder()  
      (package private) void markHotter()  
      • Methods inherited from class java.lang.Object

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

      • position

        final long position
      • size

        final long size
      • value

        volatile T value
      • hotCount

        private volatile int hotCount
      • totalHitCount

        private java.util.concurrent.atomic.AtomicInteger totalHitCount
    • Constructor Detail

      • Ref

        Ref​(DfsStreamKey key,
            long position,
            long size,
            T v)
    • Method Detail

      • get

        T get()
      • has

        boolean has()
      • markHotter

        void markHotter()
      • markColder

        void markColder()
      • isHot

        boolean isHot()