public class NotifyingFutureAdaptor<T> extends BaseNotifyingFuture<T>
Future
and exposes it as an NotifyingFuture
.Constructor and Description |
---|
NotifyingFutureAdaptor() |
Modifier and Type | Method and Description |
---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
T |
get() |
T |
get(long timeout,
TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
void |
setActual(Future<T> actual) |
attachListener, notifyDone
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
public boolean isDone()
public T get() throws InterruptedException, ExecutionException
public T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.