org.infinispan.util.concurrent.CompletableFutures Maven / Gradle / Ivy
package org.infinispan.util.concurrent;
import org.infinispan.commons.util.concurrent.NotifyingNotifiableFuture;
import static java.util.Objects.requireNonNull;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors;
import org.infinispan.commons.util.concurrent.NotifyingFuture;
import java.util.Map;
/**
* Utility methods connecting {@link CompletableFuture} futures and our {@link NotifyingNotifiableFuture} futures.
*
* @author Dan Berindei
* @since 8.0
*/
public class CompletableFutures {
private static final CompletableFuture completedEmptyMapFuture = CompletableFuture.completedFuture(Collections.emptyMap());
public static final long BIG_DELAY_NANOS = TimeUnit.DAYS.toNanos(1);
public static CompletableFuture
© 2015 - 2025 Weber Informatics LLC | Privacy Policy