Package | Description |
---|---|
org.jspare.vertx.concurrent |
Modifier and Type | Method and Description |
---|---|
VertxCompletableFuture<Void> |
VertxCompletableFuture.acceptEither(CompletionStage<? extends T> other,
Consumer<? super T> action) |
VertxCompletableFuture<Void> |
VertxCompletableFuture.acceptEitherAsync(CompletionStage<? extends T> other,
Consumer<? super T> action) |
VertxCompletableFuture<Void> |
VertxCompletableFuture.acceptEitherAsync(CompletionStage<? extends T> other,
Consumer<? super T> action,
Executor executor) |
static VertxCompletableFuture<Void> |
VertxCompletableFuture.allOf(io.vertx.core.Context context,
CompletableFuture<?>... futures)
Returns a new CompletableFuture that is completed when all of the given
CompletableFutures complete.
|
static VertxCompletableFuture<Void> |
VertxCompletableFuture.allOf(io.vertx.core.Vertx vertx,
CompletableFuture<?>... futures)
Returns a new CompletableFuture that is completed when all of the given
CompletableFutures complete.
|
static VertxCompletableFuture<Object> |
VertxCompletableFuture.anyOf(io.vertx.core.Context context,
CompletableFuture<?>... futures)
Returns a new CompletableFuture that is completed when any of the given
CompletableFutures complete, with the same result.
|
static VertxCompletableFuture<Object> |
VertxCompletableFuture.anyOf(io.vertx.core.Vertx vertx,
CompletableFuture<?>... futures)
Returns a new CompletableFuture that is completed when any of the given
CompletableFutures complete, with the same result.
|
<U> VertxCompletableFuture<U> |
VertxCompletableFuture.applyToEither(CompletionStage<? extends T> other,
Function<? super T,U> fn) |
<U> VertxCompletableFuture<U> |
VertxCompletableFuture.applyToEitherAsync(CompletionStage<? extends T> other,
Function<? super T,U> fn) |
<U> VertxCompletableFuture<U> |
VertxCompletableFuture.applyToEitherAsync(CompletionStage<? extends T> other,
Function<? super T,U> fn,
Executor executor) |
static <T> VertxCompletableFuture<T> |
VertxCompletableFuture.from(io.vertx.core.Context context,
CompletableFuture<T> future)
|
static <T> VertxCompletableFuture<T> |
VertxCompletableFuture.from(io.vertx.core.Context context,
io.vertx.core.Future<T> future)
|
static <T> VertxCompletableFuture<T> |
VertxCompletableFuture.from(io.vertx.core.Vertx vertx,
CompletableFuture<T> future)
|
static <T> VertxCompletableFuture<T> |
VertxCompletableFuture.from(io.vertx.core.Vertx vertx,
io.vertx.core.Future<T> future)
|
<U> VertxCompletableFuture<U> |
VertxCompletableFuture.handle(BiFunction<? super T,Throwable,? extends U> fn) |
<U> VertxCompletableFuture<U> |
VertxCompletableFuture.handleAsync(BiFunction<? super T,Throwable,? extends U> fn) |
<U> VertxCompletableFuture<U> |
VertxCompletableFuture.handleAsync(BiFunction<? super T,Throwable,? extends U> fn,
Executor executor) |
VertxCompletableFuture<Void> |
VertxCompletableFuture.runAfterBoth(CompletionStage<?> other,
Runnable action) |
VertxCompletableFuture<Void> |
VertxCompletableFuture.runAfterBothAsync(CompletionStage<?> other,
Runnable action) |
VertxCompletableFuture<Void> |
VertxCompletableFuture.runAfterBothAsync(CompletionStage<?> other,
Runnable action,
Executor executor) |
VertxCompletableFuture<Void> |
VertxCompletableFuture.runAfterEither(CompletionStage<?> other,
Runnable action) |
VertxCompletableFuture<Void> |
VertxCompletableFuture.runAfterEitherAsync(CompletionStage<?> other,
Runnable action) |
VertxCompletableFuture<Void> |
VertxCompletableFuture.runAfterEitherAsync(CompletionStage<?> other,
Runnable action,
Executor executor) |
static VertxCompletableFuture<Void> |
VertxCompletableFuture.runAsync(io.vertx.core.Context context,
Runnable runnable)
Returns a new CompletableFuture that is asynchronously completed by a task
running in the current Vert.x
Context after it runs the given
action. |
static VertxCompletableFuture<Void> |
VertxCompletableFuture.runAsync(io.vertx.core.Vertx vertx,
Runnable runnable)
Returns a new CompletableFuture that is asynchronously completed by a task
running in the current Vert.x
Context after it runs the given
action. |
static VertxCompletableFuture<Void> |
VertxCompletableFuture.runBlockingAsync(io.vertx.core.Context context,
Runnable runnable)
Returns a new CompletableFuture that is asynchronously completed by a
action running in the worker thread pool of Vert.x
This method is different from
CompletableFuture.runAsync(Runnable)
as it does not use a fork join executor, but the worker thread pool. |
static VertxCompletableFuture<Void> |
VertxCompletableFuture.runBlockingAsync(io.vertx.core.Vertx vertx,
Runnable runnable)
Returns a new CompletableFuture that is asynchronously completed by a
action running in the worker thread pool of Vert.x
This method is different from
CompletableFuture.runAsync(Runnable)
as it does not use a fork join executor, but the worker thread pool. |
static <T> VertxCompletableFuture<T> |
VertxCompletableFuture.supplyAsync(io.vertx.core.Context context,
Supplier<T> supplier)
Returns a new CompletableFuture that is asynchronously completed by a task
running in the current Vert.x
Context with the value obtained by
calling the given Supplier. |
static <T> VertxCompletableFuture<T> |
VertxCompletableFuture.supplyAsync(io.vertx.core.Vertx vertx,
Supplier<T> supplier)
Returns a new CompletableFuture that is asynchronously completed by a task
running in the current Vert.x
Context with the value obtained by
calling the given Supplier. |
static <T> VertxCompletableFuture<T> |
VertxCompletableFuture.supplyBlockingAsync(io.vertx.core.Context context,
Supplier<T> supplier)
Returns a new CompletableFuture that is asynchronously completed by a task
running in the worker thread pool of Vert.x
This method is different from
CompletableFuture.supplyAsync(Supplier) as it does not use a fork
join executor, but the worker thread pool. |
static <T> VertxCompletableFuture<T> |
VertxCompletableFuture.supplyBlockingAsync(io.vertx.core.Vertx vertx,
Supplier<T> supplier)
Returns a new CompletableFuture that is asynchronously completed by a task
running in the worker thread pool of Vert.x
This method is different from
CompletableFuture.supplyAsync(Supplier) as it does not use a fork
join executor, but the worker thread pool. |
VertxCompletableFuture<Void> |
VertxCompletableFuture.thenAccept(Consumer<? super T> action) |
VertxCompletableFuture<Void> |
VertxCompletableFuture.thenAcceptAsync(Consumer<? super T> action) |
VertxCompletableFuture<Void> |
VertxCompletableFuture.thenAcceptAsync(Consumer<? super T> action,
Executor executor) |
<U> VertxCompletableFuture<Void> |
VertxCompletableFuture.thenAcceptBoth(CompletionStage<? extends U> other,
BiConsumer<? super T,? super U> action) |
<U> VertxCompletableFuture<Void> |
VertxCompletableFuture.thenAcceptBothAsync(CompletionStage<? extends U> other,
BiConsumer<? super T,? super U> action) |
<U> VertxCompletableFuture<Void> |
VertxCompletableFuture.thenAcceptBothAsync(CompletionStage<? extends U> other,
BiConsumer<? super T,? super U> action,
Executor executor) |
<U> VertxCompletableFuture<U> |
VertxCompletableFuture.thenApply(Function<? super T,? extends U> fn) |
<U> VertxCompletableFuture<U> |
VertxCompletableFuture.thenApplyAsync(Function<? super T,? extends U> fn) |
<U> VertxCompletableFuture<U> |
VertxCompletableFuture.thenApplyAsync(Function<? super T,? extends U> fn,
Executor executor) |
<U,V> VertxCompletableFuture<V> |
VertxCompletableFuture.thenCombine(CompletionStage<? extends U> other,
BiFunction<? super T,? super U,? extends V> fn) |
<U,V> VertxCompletableFuture<V> |
VertxCompletableFuture.thenCombineAsync(CompletionStage<? extends U> other,
BiFunction<? super T,? super U,? extends V> fn) |
<U,V> VertxCompletableFuture<V> |
VertxCompletableFuture.thenCombineAsync(CompletionStage<? extends U> other,
BiFunction<? super T,? super U,? extends V> fn,
Executor executor) |
<U> VertxCompletableFuture<U> |
VertxCompletableFuture.thenCompose(Function<? super T,? extends CompletionStage<U>> fn) |
<U> VertxCompletableFuture<U> |
VertxCompletableFuture.thenComposeAsync(Function<? super T,? extends CompletionStage<U>> fn) |
<U> VertxCompletableFuture<U> |
VertxCompletableFuture.thenComposeAsync(Function<? super T,? extends CompletionStage<U>> fn,
Executor executor) |
VertxCompletableFuture<Void> |
VertxCompletableFuture.thenRun(Runnable action) |
VertxCompletableFuture<Void> |
VertxCompletableFuture.thenRunAsync(Runnable action) |
VertxCompletableFuture<Void> |
VertxCompletableFuture.thenRunAsync(Runnable action,
Executor executor) |
VertxCompletableFuture<T> |
VertxCompletableFuture.toCompletableFuture() |
VertxCompletableFuture<T> |
VertxCompletableFuture.whenComplete(BiConsumer<? super T,? super Throwable> action) |
VertxCompletableFuture<T> |
VertxCompletableFuture.whenCompleteAsync(BiConsumer<? super T,? super Throwable> action) |
VertxCompletableFuture<T> |
VertxCompletableFuture.whenCompleteAsync(BiConsumer<? super T,? super Throwable> action,
Executor executor) |
VertxCompletableFuture<T> |
VertxCompletableFuture.withContext()
Creates a new
VertxCompletableFuture using the current context. |
VertxCompletableFuture<T> |
VertxCompletableFuture.withContext(io.vertx.core.Context context)
Creates a new
VertxCompletableFuture using the given context. |
VertxCompletableFuture<T> |
VertxCompletableFuture.withContext(io.vertx.core.Vertx vertx)
Creates a new
VertxCompletableFuture using the current context or
creates a new one. |
Copyright © 2017 JSpare.org. All rights reserved.