public interface ParallelIterableMap<K,V>
Modifier and Type | Interface and Description |
---|---|
static interface |
ParallelIterableMap.KeyValueAction<A,B>
Interface describing an action where input is map's key/value pair
|
Modifier and Type | Method and Description |
---|---|
void |
forEach(long parallelismThreshold,
ParallelIterableMap.KeyValueAction<? super K,? super V> action)
Performs the given action for each (key, value) but traversing entries in parallel.
|
void forEach(long parallelismThreshold, ParallelIterableMap.KeyValueAction<? super K,? super V> action) throws java.lang.InterruptedException
parallelismThreshold
- the (estimated) number of elements
needed for this operation to be executed in parallelaction
- the actionjava.lang.InterruptedException