K - The type of key in input pair collection.V - The type of value array.public class GridConcurrentMultiPairQueue<K,V> extends Object
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: poll or forEach calls may produce output like: | Modifier and Type | Class and Description |
|---|---|
static class |
GridConcurrentMultiPairQueue.Result<K,V>
State holder.
|
| Modifier and Type | Field and Description |
|---|---|
static GridConcurrentMultiPairQueue |
EMPTY |
| Constructor and Description |
|---|
GridConcurrentMultiPairQueue(Collection<T2<K,V[]>> items) |
GridConcurrentMultiPairQueue(Map<K,? extends Collection<V>> items) |
| Modifier and Type | Method and Description |
|---|---|
int |
initialSize() |
boolean |
isEmpty() |
boolean |
next(GridConcurrentMultiPairQueue.Result<K,V> res)
Retrieves and removes the head of this queue,
or returns
false if this queue is empty. |
public static final GridConcurrentMultiPairQueue EMPTY
public GridConcurrentMultiPairQueue(Map<K,? extends Collection<V>> items)
public GridConcurrentMultiPairQueue(Collection<T2<K,V[]>> items)
public boolean next(GridConcurrentMultiPairQueue.Result<K,V> res)
false if this queue is empty.true if next(org.apache.ignite.internal.util.GridConcurrentMultiPairQueue.Result<K, V>) return non empty result, or false if this queue is emptypublic boolean isEmpty()
true if empty.public int initialSize()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.1 Release Date : December 9 2020