Class ConcurrentHashMapV8.Segment<K,​V>

  • All Implemented Interfaces:
    java.io.Serializable, java.util.concurrent.locks.Lock
    Enclosing class:
    ConcurrentHashMapV8<K,​V>

    static class ConcurrentHashMapV8.Segment<K,​V>
    extends java.util.concurrent.locks.ReentrantLock
    implements java.io.Serializable
    Stripped-down version of helper class used in previous version, declared for the sake of serialization compatibility
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) float loadFactor  
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      Segment​(float lf)  
    • Method Summary

      • Methods inherited from class java.util.concurrent.locks.ReentrantLock

        getHoldCount, getOwner, getQueuedThreads, getQueueLength, getWaitingThreads, getWaitQueueLength, hasQueuedThread, hasQueuedThreads, hasWaiters, isFair, isHeldByCurrentThread, isLocked, lock, lockInterruptibly, newCondition, toString, tryLock, tryLock, unlock
      • Methods inherited from class java.lang.Object

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

      • loadFactor

        final float loadFactor
    • Constructor Detail

      • Segment

        Segment​(float lf)