Class AsyncUtil
java.lang.Object
com.playtika.janusgraph.aerospike.util.AsyncUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <K,E extends Exception>
voidcompleteAll(Collection<K> keys, Predicate<K> keyPredicate, Function<K, Boolean> resultFunction, Supplier<E> failedResultErrorSupplier, Executor executor) protected static voidcompleteAll(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)
-
Field Details
-
WAIT_TIMEOUT_IN_SECONDS
public static final int WAIT_TIMEOUT_IN_SECONDS- See Also:
-
-
Constructor Details
-
AsyncUtil
public AsyncUtil()
-
-
Method Details
-
completeAll
public static <K,E extends Exception> void completeAll(Collection<K> keys, Predicate<K> keyPredicate, Function<K, Boolean> resultFunction, Supplier<E> failedResultErrorSupplier, Executor executor) throws E- Throws:
E extends Exception
-
completeAll
-
mapAll
public static <K,V> Map<K,V> mapAll(Collection<K> keys, Function<K, V> valueFunction, Executor executor) throws org.janusgraph.diskstorage.PermanentBackendException- Throws:
org.janusgraph.diskstorage.PermanentBackendException
-
getAll
public static <K,V> Map<K,V> getAll(Map<K, CompletableFuture<V>> futureMap) throws org.janusgraph.diskstorage.PermanentBackendException- Throws:
org.janusgraph.diskstorage.PermanentBackendException
-