Modifier and Type | Class and Description |
---|---|
static interface |
ResultsFuture.CompletionListener<T> |
Modifier and Type | Field and Description |
---|---|
static ResultsFuture<Void> |
NULL_FUTURE |
Constructor and Description |
---|
ResultsFuture() |
Modifier and Type | Method and Description |
---|---|
void |
addCompletionListener(ResultsFuture.CompletionListener<T> listener) |
boolean |
cancel(boolean mayInterruptIfRunning) |
protected T |
convertResult() |
T |
get() |
T |
get(long timeout,
TimeUnit unit) |
ResultsReceiver<T> |
getResultsReceiver() |
boolean |
isCancelled() |
boolean |
isDone() |
public static final ResultsFuture<Void> NULL_FUTURE
public ResultsReceiver<T> getResultsReceiver()
public boolean cancel(boolean mayInterruptIfRunning)
public T get() throws InterruptedException, ExecutionException
get
in interface Future<T>
InterruptedException
ExecutionException
protected T convertResult() throws ExecutionException
ExecutionException
public T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get
in interface Future<T>
InterruptedException
ExecutionException
TimeoutException
public boolean isCancelled()
isCancelled
in interface Future<T>
public void addCompletionListener(ResultsFuture.CompletionListener<T> listener)
Copyright © 2016 JBoss by Red Hat. All rights reserved.