Class ForwardingApiFuture<T> (2.6.3)

public class ForwardingApiFuture<T> implements ApiFuture<T>

Inheritance

java.lang.Object > ForwardingApiFuture<T>

Implements

ApiFuture<T>

Type Parameter

NameDescription
T

Constructors

ForwardingApiFuture(ApiFuture<T> delegate)

public ForwardingApiFuture(ApiFuture<T> delegate)
Parameter
NameDescription
delegateApiFuture<T>

Methods

addListener(Runnable listener, Executor executor)

public void addListener(Runnable listener, Executor executor)
Parameters
NameDescription
listenerRunnable
executorExecutor

cancel(boolean mayInterruptIfRunning)

public boolean cancel(boolean mayInterruptIfRunning)
Parameter
NameDescription
mayInterruptIfRunningboolean
Returns
TypeDescription
boolean

get()

public T get()
Returns
TypeDescription
T
Exceptions
TypeDescription
InterruptedException
ExecutionException

get(long timeout, TimeUnit unit)

public T get(long timeout, TimeUnit unit)
Parameters
NameDescription
timeoutlong
unitTimeUnit
Returns
TypeDescription
T
Exceptions
TypeDescription
InterruptedException
ExecutionException
TimeoutException

isCancelled()

public boolean isCancelled()
Returns
TypeDescription
boolean

isDone()

public boolean isDone()
Returns
TypeDescription
boolean