| Modifier and Type | Class and Description |
|---|---|
| public static interface |
| Modifier and Type | Field and Description |
|---|---|
| private final Cancelable | |
| private final long | |
| private static final AtomicLong |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | cancel(boolean mayInterruptIfRunning)
Overrides java. Implements java. If not already completed, completes this CompletableFuture with
a |
| private Cancelable | |
| private static <U> void | |
| public static <U> MinimalFuture | completedFuture(U value)
Hides java. Returns a new CompletableFuture that is already completed with the given value. |
| public static <U> CompletableFuture | failedFuture(Throwable ex)
Hides java. Returns a new CompletableFuture that is already completed exceptionally with the given exception. |
| public <U> MinimalFuture | newIncompleteFuture()
Overrides java. Returns a new incomplete CompletableFuture of the type to be returned by a CompletionStage method. |
| public void | obtrudeException(Throwable ex)
Overrides java. Forcibly causes subsequent invocations of method |
| public void | obtrudeValue(T value)
Overrides java. Forcibly sets or resets the value subsequently returned by
method |
| public static <U> MinimalFuture | |
| public static <U> CompletableFuture | |
| public String | toString()
Overrides java. Returns a string identifying this CompletableFuture, as well as its completion state. |
| cancelable | back to summary |
|---|---|
| private final Cancelable cancelable | |
| id | back to summary |
|---|---|
| private final long id | |
| TOKENS | back to summary |
|---|---|
| private static final AtomicLong TOKENS | |
| MinimalFuture | back to summary |
|---|---|
| public MinimalFuture() | |
| MinimalFuture | back to summary |
|---|---|
| public MinimalFuture(Cancelable cancelable) | |
| cancel | back to summary |
|---|---|
| public boolean cancel(boolean mayInterruptIfRunning) Overrides java. Implements java. Doc from java. If not already completed, completes this CompletableFuture with
a
| |
| cancelable | back to summary |
|---|---|
| private Cancelable cancelable() | |
| complete | back to summary |
|---|---|
| private static <U> void complete(CompletableFuture<U> cf, U result, Throwable t) | |
| completedFuture | back to summary |
|---|---|
| public static <U> MinimalFuture Hides java. Doc from java. Returns a new CompletableFuture that is already completed with the given value. | |
| failedFuture | back to summary |
|---|---|
| public static <U> CompletableFuture Hides java. Doc from java. Returns a new CompletableFuture that is already completed exceptionally with the given exception. | |
| newIncompleteFuture | back to summary |
|---|---|
| public <U> MinimalFuture Overrides java. Doc from java. Returns a new incomplete CompletableFuture of the type to be returned by a CompletionStage method. Subclasses should normally override this method to return an instance of the same class as this CompletableFuture. The default implementation returns an instance of class CompletableFuture.
| |
| obtrudeException | back to summary |
|---|---|
| public void obtrudeException(Throwable ex) Overrides java. Doc from java. Forcibly causes subsequent invocations of method
| |
| obtrudeValue | back to summary |
|---|---|
| public void obtrudeValue(T value) Overrides java. Doc from java. Forcibly sets or resets the value subsequently returned by
method
| |
| of | back to summary |
|---|---|
| public static <U> MinimalFuture | |
| supply | back to summary |
|---|---|
| public static <U> CompletableFuture | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string identifying this CompletableFuture, as well as
its completion state. The state, in brackets, contains the
String
| |
| Modifier and Type | Method and Description |
|---|---|
| public U |
| get | back to summary |
|---|---|
| public U get() throws Throwable | |