java.lang.Object
org.neo4j.driver.internal.bolt.routedimpl.util.FutureUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CompletionExceptionasCompletionException(Throwable error) static CompletionExceptioncombineErrors(Throwable error1, Throwable error2) static Throwablestatic <T> TjoinNowOrElseThrow(CompletableFuture<T> future, Supplier<? extends RuntimeException> exceptionSupplier) static <T> CompletableFuture<T>onErrorContinue(CompletableFuture<T> future, Throwable errorRecorder, Function<Throwable, ? extends CompletionStage<T>> onErrorAction)
-
Constructor Details
-
FutureUtil
public FutureUtil()
-
-
Method Details
-
asCompletionException
-
completionExceptionCause
-
onErrorContinue
public static <T> CompletableFuture<T> onErrorContinue(CompletableFuture<T> future, Throwable errorRecorder, Function<Throwable, ? extends CompletionStage<T>> onErrorAction) -
combineErrors
-
joinNowOrElseThrow
public static <T> T joinNowOrElseThrow(CompletableFuture<T> future, Supplier<? extends RuntimeException> exceptionSupplier)
-