Class AsyncUtil

java.lang.Object
com.playtika.janusgraph.aerospike.util.AsyncUtil

public class AsyncUtil extends Object
  • 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

      protected static void completeAll(List<CompletableFuture<?>> futures)
    • 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