Class ForwardingApiFuture<T> (2.30.0)

public class ForwardingApiFuture<T> implements ApiFuture<T>

Inheritance

java.lang.Object > ForwardingApiFuture<T>

Implements

ApiFuture<T>

Type Parameter

Name Description
T

Constructors

ForwardingApiFuture(ApiFuture<T> delegate)

public ForwardingApiFuture(ApiFuture<T> delegate)
Parameter
Name Description
delegate ApiFuture<T>

Methods

addListener(Runnable listener, Executor executor)

public void addListener(Runnable listener, Executor executor)
Parameters
Name Description
listener Runnable
executor Executor

cancel(boolean mayInterruptIfRunning)

public boolean cancel(boolean mayInterruptIfRunning)
Parameter
Name Description
mayInterruptIfRunning boolean
Returns
Type Description
boolean

get()

public T get()
Returns
Type Description
T
Exceptions
Type Description
InterruptedException
ExecutionException

get(long timeout, TimeUnit unit)

public T get(long timeout, TimeUnit unit)
Parameters
Name Description
timeout long
unit TimeUnit
Returns
Type Description
T
Exceptions
Type Description
InterruptedException
ExecutionException
TimeoutException

isCancelled()

public boolean isCancelled()
Returns
Type Description
boolean

isDone()

public boolean isDone()
Returns
Type Description
boolean