Class JmcCompletableFuture<T>
java.lang.Object
java.util.concurrent.CompletableFuture<T>
org.mpi_sws.jmc.api.util.concurrent.JmcCompletableFuture<T>
- Type Parameters:
T- the type of the result of the future
- All Implemented Interfaces:
CompletionStage<T>,Future<T>
A JMC-specific version of
CompletableFuture that allows for custom
execution and provides a way to set an underlying JmcFuture.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.util.concurrent.CompletableFuture
CompletableFuture.AsynchronousCompletionTaskNested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<U> CompletableFuture<U> static CompletableFuture<Void> voidsetUnderlyingFuture(JmcFuture<T> underlyingFuture) static <U> CompletableFuture<U> supplyAsync(Supplier<U> supplier) Methods inherited from class java.util.concurrent.CompletableFuture
acceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, cancel, complete, completeAsync, completeAsync, completedFuture, completedStage, completeExceptionally, completeOnTimeout, copy, delayedExecutor, delayedExecutor, exceptionally, exceptionallyAsync, exceptionallyAsync, exceptionallyCompose, exceptionallyComposeAsync, exceptionallyComposeAsync, exceptionNow, failedFuture, failedStage, get, get, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCancelled, isCompletedExceptionally, isDone, join, minimalCompletionStage, obtrudeException, obtrudeValue, orTimeout, resultNow, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, runAsync, state, supplyAsync, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenRun, thenRunAsync, thenRunAsync, toCompletableFuture, toString, whenComplete, whenCompleteAsync, whenCompleteAsync
-
Constructor Details
-
JmcCompletableFuture
public JmcCompletableFuture()
-
-
Method Details
-
setUnderlyingFuture
-
newIncompleteFuture
- Overrides:
newIncompleteFuturein classCompletableFuture<T>
-
defaultExecutor
- Overrides:
defaultExecutorin classCompletableFuture<T>
-
supplyAsync
-
runAsync
-