| Package | Description |
|---|---|
| nl.talsmasoftware.context.futures |
| Modifier and Type | Method | Description |
|---|---|---|
static ContextAwareCompletableFuture<java.lang.Void> |
ContextAwareCompletableFuture.runAsync(java.lang.Runnable runnable) |
Runs the
runnable task in the common ForkJoinPool
within the current context and also applies that context to all successive
calls to the CompletableFuture. |
static ContextAwareCompletableFuture<java.lang.Void> |
ContextAwareCompletableFuture.runAsync(java.lang.Runnable runnable,
java.util.concurrent.Executor executor) |
Runs the
runnable task in the specified executor
within the current context and also applies that context to all successive
calls to the CompletableFuture. |
static ContextAwareCompletableFuture<java.lang.Void> |
ContextAwareCompletableFuture.runAsync(java.lang.Runnable runnable,
java.util.concurrent.Executor executor,
ContextSnapshot snapshot) |
Runs the
runnable task in the specified executor
within the specified context snapshot and also applies that context
to all successive calls to the CompletableFuture. |
static <U> ContextAwareCompletableFuture<U> |
ContextAwareCompletableFuture.supplyAsync(java.util.function.Supplier<U> supplier) |
Runs the
supplier task in the common ForkJoinPool
within the current context and also applies that context to all successive
calls to the CompletableFuture. |
static <U> ContextAwareCompletableFuture<U> |
ContextAwareCompletableFuture.supplyAsync(java.util.function.Supplier<U> supplier,
java.util.concurrent.Executor executor) |
Runs the
supplier task in the specified executor
within the current context and also applies that context to all successive
calls to the CompletableFuture. |
static <U> ContextAwareCompletableFuture<U> |
ContextAwareCompletableFuture.supplyAsync(java.util.function.Supplier<U> supplier,
java.util.concurrent.Executor executor,
ContextSnapshot snapshot) |
Runs the
supplier task in the specified executor
within the specified context snapshot and also applies that context
to all successive calls to the CompletableFuture. |
Copyright © 2016–2018 Talsma ICT. All rights reserved.