Class AsyncResult<V>
java.lang.Object
org.springframework.scheduling.annotation.AsyncResult<V>
- Type Parameters:
- V- the value type
- All Implemented Interfaces:
- Future<V>
Deprecated.
A pass-through 
Future handle that can be used for method signatures
 which are declared with a Future return type for asynchronous execution.- Since:
- 3.0
- Author:
- Juergen Hoeller, Rossen Stoyanchev
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface java.util.concurrent.FutureFuture.State
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleancancel(boolean mayInterruptIfRunning) Deprecated.static <V> Future<V> Deprecated.Create a new async result which exposes the given exception as anExecutionExceptionfromFuture.get().static <V> Future<V> forValue(V value) Deprecated.Create a new async result which exposes the given value fromFuture.get().get()Deprecated.Deprecated.booleanDeprecated.booleanisDone()Deprecated.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.concurrent.FutureexceptionNow, resultNow, state
- 
Constructor Details- 
AsyncResult
 
- 
- 
Method Details- 
cancel
- 
isCancelled
- 
isDone
- 
getDeprecated.- Specified by:
- getin interface- Future<V>
- Throws:
- ExecutionException
 
- 
getDeprecated.- Specified by:
- getin interface- Future<V>
- Throws:
- ExecutionException
 
- 
forValueDeprecated.Create a new async result which exposes the given value fromFuture.get().- Parameters:
- value- the value to expose
- Since:
- 4.2
- See Also:
 
- 
forExecutionExceptionDeprecated.Create a new async result which exposes the given exception as anExecutionExceptionfromFuture.get().- Parameters:
- ex- the exception to expose (either an pre-built- ExecutionExceptionor a cause to be wrapped in an- ExecutionException)
- Since:
- 4.2
- See Also:
 
 
- 
CompletableFuture