Modifier and Type | Class and Description |
---|---|
static interface |
ChainedOperation.Operation<T> |
Constructor and Description |
---|
ChainedOperation(ChainedOperation.Operation<T> operation) |
Modifier and Type | Method and Description |
---|---|
void |
call() |
boolean |
cancel(boolean mayInterruptIfRunning) |
T |
get() |
T |
get(long timeout,
TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
public ChainedOperation(ChainedOperation.Operation<T> operation)
public void call()
public boolean cancel(boolean mayInterruptIfRunning)
public T get() throws InterruptedException, ExecutionException
get
in interface Future<T>
InterruptedException
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>
Copyright © 2016. All rights reserved.