Class AsyncResult<V>

java.lang.Object
org.springframework.scheduling.annotation.AsyncResult<V>
Type Parameters:
V - the value type
All Implemented Interfaces:
Future<V>, ListenableFuture<V>

@Deprecated(since="6.0") public class AsyncResult<V> extends Object implements ListenableFuture<V>
Deprecated.
as of 6.0, in favor of CompletableFuture
A pass-through Future handle that can be used for method signatures which are declared with a Future return type for asynchronous execution.

As of Spring 4.1, this class implements ListenableFuture, not just plain Future, along with the corresponding support in @Async processing. As of 7.0, this will be turned back to a plain Future in order to focus on compatibility with existing common usage.

Since:
3.0
Author:
Juergen Hoeller, Rossen Stoyanchev
See Also: