类 IndustrialHashMap.Segment<K,V>

java.lang.Object
java.util.concurrent.locks.ReentrantReadWriteLock
com.tlcsdm.core.concurrent.IndustrialHashMap.Segment<K,V>
所有已实现的接口:
Serializable, ReadWriteLock
封闭类:
IndustrialHashMap<K,V>

static final class IndustrialHashMap.Segment<K,V> extends ReentrantReadWriteLock
分段结构,每个分段独立加锁
  • 字段详细资料

    • serialVersionUID

      private static final long serialVersionUID
      另请参阅:
    • table

      volatile IndustrialHashMap.HashEntry<K,V>[] table
    • count

      volatile int count
    • modCount

      volatile int modCount
    • loadFactor

      final float loadFactor
    • threshold

      int threshold
    • lastAccessTime

      volatile long lastAccessTime
    • operationCount

      volatile int operationCount
  • 构造器详细资料

    • Segment

      Segment(int initialCapacity, float loadFactor)
  • 方法详细资料

    • setTable

      void setTable(IndustrialHashMap.HashEntry<K,V>[] newTable)
    • getFirst

      IndustrialHashMap.HashEntry<K,V> getFirst(int hash)
    • readValueUnderLock

      V readValueUnderLock(Object key, int hash)
    • put

      V put(K key, int hash, V value, boolean onlyIfAbsent)
    • remove

      V remove(Object key, int hash, Object value)
    • rehash

      void rehash()
    • updateAccessTime

      private void updateAccessTime()
    • cleanup

      void cleanup()