org.springframework.util

## 类 ConcurrentReferenceHashMap.ReferenceManager

- java.lang.Object
- - org.springframework.util.ConcurrentReferenceHashMap.ReferenceManager

- 封闭类:
    ConcurrentReferenceHashMap<K,V>

      protected class ConcurrentReferenceHashMap.ReferenceManager
      extends Object

  Strategy class used to manage `ConcurrentReferenceHashMap.Reference`s. This class can be overridden if alternative reference types need to be supported.

- - ### 构造器概要

    构造器
    限定符 | 构造器和说明
    --- | ---
    `protected` | `ReferenceManager()`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `ConcurrentReferenceHashMap.Reference<K,V>` | `createReference(ConcurrentReferenceHashMap.Entry<K,V> entry, int hash, ConcurrentReferenceHashMap.Reference<K,V> next)` Factory method used to create a new `ConcurrentReferenceHashMap.Reference`.
    `ConcurrentReferenceHashMap.Reference<K,V>` | `pollForPurge()` Return any reference that has been garbage collected and can be purged from the underlying structure or `null` if no references need purging.

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### ReferenceManager

          protected ReferenceManager()

  - ### 方法详细资料

    - #### createReference

          public ConcurrentReferenceHashMap.Reference<K,V> createReference(ConcurrentReferenceHashMap.Entry<K,V> entry,
                                                                           int hash,
                                                                           @Nullable
                                                                           ConcurrentReferenceHashMap.Reference<K,V> next)

      Factory method used to create a new `ConcurrentReferenceHashMap.Reference`.
      参数:
        `entry` - the entry contained in the reference
        `hash` - the hash
        `next` - the next reference in the chain, or `null` if none
      返回:
        a new `ConcurrentReferenceHashMap.Reference`

    - #### pollForPurge

          @Nullable
          public ConcurrentReferenceHashMap.Reference<K,V> pollForPurge()

      Return any reference that has been garbage collected and can be purged from the underlying structure or `null` if no references need purging. This method must be thread safe and ideally should not block when returning `null`. References should be returned once and only once.
      返回:
        a reference to purge or `null`