Package | Description |
---|---|
org.springframework.core.task |
This package defines Spring's core TaskExecutor abstraction,
and provides SyncTaskExecutor and SimpleAsyncTaskExecutor implementations.
|
org.springframework.core.task.support |
Support classes for Spring's TaskExecutor abstraction.
|
org.springframework.util.concurrent |
Useful generic
java.util.concurrent.Future extensions. |
Modifier and Type | Method and Description |
---|---|
<T> ListenableFuture<T> |
AsyncListenableTaskExecutor.submitListenable(Callable<T> task)
Submit a
Callable task for execution, receiving a ListenableFuture
representing that task. |
<T> ListenableFuture<T> |
SimpleAsyncTaskExecutor.submitListenable(Callable<T> task) |
ListenableFuture<?> |
AsyncListenableTaskExecutor.submitListenable(Runnable task)
Submit a
Runnable task for execution, receiving a ListenableFuture
representing that task. |
ListenableFuture<?> |
SimpleAsyncTaskExecutor.submitListenable(Runnable task) |
Modifier and Type | Method and Description |
---|---|
<T> ListenableFuture<T> |
TaskExecutorAdapter.submitListenable(Callable<T> task) |
ListenableFuture<?> |
TaskExecutorAdapter.submitListenable(Runnable task) |
Modifier and Type | Class and Description |
---|---|
class |
CompletableToListenableFutureAdapter<T>
|
class |
ListenableFutureAdapter<T,S>
Abstract class that adapts a
ListenableFuture parameterized over S into a
ListenableFuture parameterized over T. |
class |
ListenableFutureTask<T>
Extension of
FutureTask that implements ListenableFuture . |
class |
MonoToListenableFutureAdapter<T>
Adapts a
Mono into a ListenableFuture by obtaining a
CompletableFuture from the Mono via Mono.toFuture()
and then adapting it with CompletableToListenableFutureAdapter . |
class |
SettableListenableFuture<T>
A
ListenableFuture whose value can be set via SettableListenableFuture.set(Object)
or SettableListenableFuture.setException(Throwable) . |
Constructor and Description |
---|
ListenableFutureAdapter(ListenableFuture<S> adaptee)
Construct a new
ListenableFutureAdapter with the given adaptee. |