Class GridConcurrentMultiPairQueue<K,​V>

  • Type Parameters:
    K - The type of key in input pair collection.
    V - The type of value array.

    public class GridConcurrentMultiPairQueue<K,​V>
    extends Object
    Concurrent queue that wraps collection of Pair<K, V[]> The only garantee next(org.apache.ignite.internal.util.GridConcurrentMultiPairQueue.Result<K, V>) provided is sequentially emptify values per key array. i.e. input like:
    p1 = new Pair<1, [1, 3, 5, 7]>
    p2 = new Pair<2, [2, 3]>
    p3 = new Pair<3, [200, 100]>
    and further sequence of poll or forEach calls may produce output like:
    [3, 200], [3, 100], [1, 1], [1, 3], [1, 5], [1, 7], [2, 2], [2, 3]