Class ConcurrentLongPairSet

java.lang.Object
org.apache.pulsar.common.util.collections.ConcurrentLongPairSet
All Implemented Interfaces:
LongPairSet

public class ConcurrentLongPairSet extends Object implements LongPairSet
Concurrent hash set where values are composed of pairs of longs.

Provides similar methods as a ConcurrentHashSet<V> but since it's an open hash set with linear probing, no node allocations are required to store the keys and values, and no boxing is required.

Values MUST be >= 0.

  • Constructor Details

    • ConcurrentLongPairSet

      @Deprecated public ConcurrentLongPairSet()
      Deprecated.
    • ConcurrentLongPairSet

      @Deprecated public ConcurrentLongPairSet(int expectedItems)
      Deprecated.
    • ConcurrentLongPairSet

      @Deprecated public ConcurrentLongPairSet(int expectedItems, int concurrencyLevel)
      Deprecated.
    • ConcurrentLongPairSet

      public ConcurrentLongPairSet(int expectedItems, int concurrencyLevel, float mapFillFactor, float mapIdleFactor, boolean autoShrink, float expandFactor, float shrinkFactor)
  • Method Details