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.
Summary
Public Constructors |
|
AsyncResult(V value)
Create a new AsyncResult holder.
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
java.util.concurrent.Future
abstract
boolean
|
cancel(boolean arg0)
|
abstract
V
|
get()
|
abstract
V
|
get(long arg0, TimeUnit arg1)
|
abstract
boolean
|
isCancelled()
|
abstract
boolean
|
isDone()
|
|
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
(long timeout, TimeUnit unit)
public
boolean
isCancelled
()