Class ConcurrentCountMap<T>

java.lang.Object
org.apache.hc.client5.http.schedule.ConcurrentCountMap<T>
Type Parameters:
T - identifier used as a map key

@Contract(threading=SAFE) public final class ConcurrentCountMap<T> extends Object
Concurrent map of integer counts.
Since:
5.0
  • Field Details

  • Constructor Details

    • ConcurrentCountMap

      public ConcurrentCountMap()
  • Method Details

    • getCount

      public int getCount(T identifier)
    • resetCount

      public void resetCount(T identifier)
    • increaseCount

      public int increaseCount(T identifier)
    • get

      private AtomicInteger get(T identifier)