public class AsyncUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
WAIT_TIMEOUT_IN_SECONDS |
| Constructor and Description |
|---|
AsyncUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
completeAll(List<CompletableFuture<?>> futures) |
static <K,V> Map<K,V> |
getAll(Map<K,CompletableFuture<V>> futureMap) |
static <K,V> Map<K,V> |
mapAll(Collection<K> keys,
Function<K,V> valueFunction,
Executor executor) |
public static final int WAIT_TIMEOUT_IN_SECONDS
public static void completeAll(List<CompletableFuture<?>> futures)
public static <K,V> Map<K,V> mapAll(Collection<K> keys, Function<K,V> valueFunction, Executor executor) throws org.janusgraph.diskstorage.PermanentBackendException
org.janusgraph.diskstorage.PermanentBackendExceptionpublic static <K,V> Map<K,V> getAll(Map<K,CompletableFuture<V>> futureMap) throws org.janusgraph.diskstorage.PermanentBackendException
org.janusgraph.diskstorage.PermanentBackendExceptionCopyright © 2019. All rights reserved.