| Package | Description |
|---|---|
| cloud.orbit.concurrent | |
| cloud.orbit.lifecycle |
| Modifier and Type | Method and Description |
|---|---|
Task<Void> |
Task.acceptEither(CompletionStage<? extends T> completionStage,
Consumer<? super T> consumer) |
Task<Void> |
Task.acceptEitherAsync(CompletionStage<? extends T> completionStage,
Consumer<? super T> consumer) |
Task<Void> |
Task.acceptEitherAsync(CompletionStage<? extends T> completionStage,
Consumer<? super T> consumer,
Executor executor) |
static <F extends CompletableFuture<?>,C extends Collection<F>> |
Task.allOf(C cfs) |
static Task<Void> |
Task.allOf(CompletableFuture<?>... cfs) |
static <F extends CompletableFuture<?>> |
Task.allOf(Stream<F> cfs) |
static <F extends CompletableFuture<?>> |
Task.anyOf(Collection<F> cfs) |
static Task<Object> |
Task.anyOf(CompletableFuture<?>... cfs) |
static <F extends CompletableFuture<?>> |
Task.anyOf(Stream<F> cfs) |
Task<R> |
TaskFunction.apply(T t) |
<U> Task<U> |
Task.applyToEither(CompletionStage<? extends T> completionStage,
Function<? super T,U> function) |
<U> Task<U> |
Task.applyToEitherAsync(CompletionStage<? extends T> completionStage,
Function<? super T,U> function) |
<U> Task<U> |
Task.applyToEitherAsync(CompletionStage<? extends T> completionStage,
Function<? super T,U> function,
Executor executor) |
static Task<Void> |
Task.done() |
Task<T> |
Task.exceptionally(Function<Throwable,? extends T> fn) |
Task<T> |
Task.failAfter(long timeout,
TimeUnit timeUnit)
Returns a new task that will fail if the original is not completed withing the given timeout.
|
static <T> Task<T> |
Task.from(CompletionStage<T> stage)
Wraps a CompletionStage as a Task or just casts it if it is already a Task.
|
static <T> Task<T> |
Task.fromException(Throwable ex) |
static <T> Task<T> |
Task.fromFuture(Future<T> future)
Wraps a Future as a Task or just casts it if it is already a Task.
|
static <T> Task<T> |
Task.fromValue(T value)
Creates an already completed task from the given value.
|
Task<T> |
TaskSupplier.get() |
<U> Task<U> |
Task.handle(BiFunction<? super T,Throwable,? extends U> fn) |
<U> Task<U> |
Task.handleAsync(BiFunction<? super T,Throwable,? extends U> biFunction) |
<U> Task<U> |
Task.handleAsync(BiFunction<? super T,Throwable,? extends U> biFunction,
Executor executor) |
Task<Void> |
Task.runAfterBoth(CompletionStage<?> completionStage,
Runnable runnable) |
Task<Void> |
Task.runAfterBothAsync(CompletionStage<?> completionStage,
Runnable runnable) |
Task<Void> |
Task.runAfterBothAsync(CompletionStage<?> completionStage,
Runnable runnable,
Executor executor) |
Task<Void> |
Task.runAfterEither(CompletionStage<?> completionStage,
Runnable runnable) |
Task<Void> |
Task.runAfterEitherAsync(CompletionStage<?> completionStage,
Runnable runnable) |
Task<Void> |
Task.runAfterEitherAsync(CompletionStage<?> completionStage,
Runnable runnable,
Executor executor) |
static Task<Void> |
Task.runAsync(Runnable runnable) |
static Task<Void> |
Task.runAsync(Runnable runnable,
Executor executor) |
static Task<Void> |
Task.sleep(long time,
TimeUnit timeUnit)
Returns a new task that will fail if the original is not completed withing the given timeout.
|
static <U> Task<U> |
Task.supplyAsync(Supplier<U> supplier) |
static <U> Task<U> |
Task.supplyAsync(Supplier<U> supplier,
Executor executor) |
static <U> Task<U> |
Task.supplyAsync(TaskSupplier<U> supplier) |
static <U> Task<U> |
Task.supplyAsync(TaskSupplier<U> supplier,
Executor executor) |
Task<Void> |
Task.thenAccept(Consumer<? super T> action) |
Task<Void> |
Task.thenAcceptAsync(Consumer<? super T> consumer) |
Task<Void> |
Task.thenAcceptAsync(Consumer<? super T> consumer,
Executor executor) |
<U> Task<Void> |
Task.thenAcceptBoth(CompletionStage<? extends U> completionStage,
BiConsumer<? super T,? super U> biConsumer) |
<U> Task<Void> |
Task.thenAcceptBothAsync(CompletionStage<? extends U> completionStage,
BiConsumer<? super T,? super U> biConsumer) |
<U> Task<Void> |
Task.thenAcceptBothAsync(CompletionStage<? extends U> completionStage,
BiConsumer<? super T,? super U> biConsumer,
Executor executor) |
<U> Task<U> |
Task.thenApply(Function<? super T,? extends U> fn) |
<U> Task<U> |
Task.thenApplyAsync(Function<? super T,? extends U> function) |
<U> Task<U> |
Task.thenApplyAsync(Function<? super T,? extends U> function,
Executor executor) |
<U,V> Task<V> |
Task.thenCombine(CompletionStage<? extends U> completionStage,
BiFunction<? super T,? super U,? extends V> biFunction) |
<U,V> Task<V> |
Task.thenCombineAsync(CompletionStage<? extends U> completionStage,
BiFunction<? super T,? super U,? extends V> biFunction) |
<U,V> Task<V> |
Task.thenCombineAsync(CompletionStage<? extends U> completionStage,
BiFunction<? super T,? super U,? extends V> biFunction,
Executor executor) |
<U> Task<U> |
Task.thenCompose(Function<? super T,? extends CompletionStage<U>> fn) |
<U> Task<U> |
Task.thenCompose(Supplier<? extends CompletionStage<U>> fn) |
<U> Task<U> |
Task.thenComposeAsync(Function<? super T,? extends CompletionStage<U>> function) |
<U> Task<U> |
Task.thenComposeAsync(Function<? super T,? extends CompletionStage<U>> function,
Executor executor) |
<U> Task<U> |
Task.thenReturn(Supplier<U> supplier)
Returns a new Task that is executed when this task completes normally.
|
Task<Void> |
Task.thenRun(Runnable action) |
Task<Void> |
Task.thenRunAsync(Runnable runnable) |
Task<Void> |
Task.thenRunAsync(Runnable runnable,
Executor executor) |
Task<T> |
Task.whenComplete(BiConsumer<? super T,? super Throwable> action) |
Task<T> |
Task.whenCompleteAsync(BiConsumer<? super T,? super Throwable> biConsumer) |
Task<T> |
Task.whenCompleteAsync(BiConsumer<? super T,? super Throwable> biConsumer,
Executor executor) |
| Modifier and Type | Method and Description |
|---|---|
default Task<?> |
Startable.start()
It must be possible to call start twice without errors.
|
default Task<?> |
Startable.stop()
It must be possible to call stop twice.
|
Copyright © 2019 Electronic Arts Inc. All rights reserved.