类 AsyncResult<V>

  • 类型参数:
    V - the value type
    所有已实现的接口:
    Future<V>, ListenableFuture<V>

    public class AsyncResult<V>
    extends Object
    implements ListenableFuture<V>
    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 Spring 4.2, this class also supports passing execution exceptions back to the caller.

    从以下版本开始:
    3.0
    作者:
    Juergen Hoeller, Rossen Stoyanchev
    另请参阅:
    Async, forValue(Object), forExecutionException(Throwable)