public class

AsyncResult

extends Object
implements Future<V>
java.lang.Object
   ↳ org.springframework.scheduling.annotation.AsyncResult<V>

Class Overview

A pass-through Future handle that can be used for method signatures which are declared with a Future return type for asynchronous execution.

See Also

Summary

Public Constructors
AsyncResult(V value)
Create a new AsyncResult holder.
Public Methods
boolean cancel(boolean mayInterruptIfRunning)
V get()
V get(long timeout, TimeUnit unit)
boolean isCancelled()
boolean isDone()
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.util.concurrent.Future

Public Constructors

public AsyncResult (V value)

Create a new AsyncResult holder.

Parameters
value the value to pass through

Public Methods

public boolean cancel (boolean mayInterruptIfRunning)

public V get ()

public V get (long timeout, TimeUnit unit)

public boolean isCancelled ()

public boolean isDone ()