Constructor and Description |
---|
FutureObject()
Constructs a new FutureObject, which is not "done" by default.
|
Modifier and Type | Method and Description |
---|---|
boolean |
cancel(boolean arg0)
won't work.
|
void |
deliver(T obj)
Deliver object to this FutureObject
|
T |
get() |
T |
get(long timeout,
TimeUnit unit) |
boolean |
isCancelled()
This implementation of Future
|
boolean |
isDone() |
public FutureObject()
public boolean isCancelled()
isCancelled
in interface Future
public T get() throws InterruptedException, ExecutionException
get
in interface Future
InterruptedException
ExecutionException
public T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get
in interface Future
InterruptedException
ExecutionException
TimeoutException
public void deliver(T obj)
obj
- Copyright © 2013. All Rights Reserved.