Package org.apache.pulsar.common.util.collections
package org.apache.pulsar.common.util.collections
Set of different collections working in the concurrent environment.
-
ClassDescriptionThis this copy of
BitSet
.ABitSet
that is protected by aStampedLock
to provide thread-safe access.Safe multithreaded version ofBitSet
and leverage netty recycler.Map from long to an Object.Builder of ConcurrentLongHashMap.Processor for one key-value entry, where the key islong
.Concurrent hash map where both keys and values are composed of pairs of longs.A BiConsumer Long pair.Builder of ConcurrentLongLongPairHashMap.A Long pair function.A Long pair predicate.A pair of long values.Concurrent hash set where values are composed of pairs of longs.Builder of ConcurrentLongPairSet.Represents a function that accepts an object of theLongPair
type.Class representing two long values.Represents a function that accepts two long arguments.Concurrent hash map.Builder of ConcurrentOpenHashMap.Concurrent hash set.Builder of ConcurrentOpenHashSet.ConcurrentOpenLongPairRangeSet<T extends Comparable<T>>A Concurrent set comprising zero or more ranges of typeLongPairRangeSet.LongPair
.Sorted concurrentLongPairSet
which is not fully accurate in sorting.This implements aBlockingQueue
backed by an array with no fixed capacity.An unbounded priority queue based on a min heap where values are composed of pairs of longs.Class representing two long values.Represents a function that accepts two long arguments.Predicate to checks for a key-value pair where both of them have long types.LongPairRangeSet<T extends Comparable<T>>A set comprising zero or more ranges type of key-value pair.LongPairRangeSet.DefaultRangeSet<T extends Comparable<T>>Generic implementation of a default range set.This class is a simple key-value data structure.Represents a function that accepts two long arguments and produces a result.Represents a function that accepts result and produces a LongPair.LongPairRangeSet.RangeProcessor<T extends Comparable<T>>The interface exposing a method for processing of ranges.The interface exposing a method for processing raw form of ranges.Hash set where values are composed of pairs of longs.Represents a function that accepts two long arguments and produces a result.Predicate to checks for a key-value pair where both of them have long types.Provides a priority-queue implementation specialized on items composed by 3 longs.