Class Futures
java.lang.Object
org.apache.bookkeeper.mledger.util.Futures
Conveniences to use with
CompletableFuture.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAdapts aAsyncCallbacks.CloseCallbackto aCompletableFuture. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> CompletableFuture<T>executeWithRetry(Supplier<CompletableFuture<T>> op, Class<? extends Exception> needRetryExceptionClass, int maxRetryTimes) static CompletableFuture<Void>waitForAll(List<CompletableFuture<Void>> futures)
-
Field Details
-
NULL_PROMISE
-
-
Constructor Details
-
Futures
public Futures()
-
-
Method Details
-
waitForAll
-
executeWithRetry
public static <T> CompletableFuture<T> executeWithRetry(Supplier<CompletableFuture<T>> op, Class<? extends Exception> needRetryExceptionClass, int maxRetryTimes)
-