AbstractFutureProxy

public abstract class org.apache.commons.lang3.concurrent.AbstractFutureProxy<V> implements Future<V>[source]

Proxies to a Future for subclassing.

Type parameters:

<V> – The result type returned by this Future's get() and get(long, TimeUnit) methods.

Since:

3.13.0

Constructors

AbstractFutureProxy(Future<V> future)

Constructs a new instance.

public AbstractFutureProxy(Future<V> future)[source]

Constructs a new instance.

Parameters:

future – The delegate.

Methods

boolean

cancel(boolean mayInterruptIfRunning)

V

get()

V

get(long timeout, TimeUnit unit)

Future<V>

getFuture()

Gets the delegate.

boolean

isCancelled()

boolean

isDone()

public boolean cancel(boolean mayInterruptIfRunning)[source]
Specified by:

cancel in interface Future

public V get() throws InterruptedException, ExecutionException[source]
Specified by:

get in interface Future

public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException[source]
Specified by:

get in interface Future

public Future<V> getFuture()[source]

Gets the delegate.

Returns:

The delegate.

public boolean isCancelled()[source]
Specified by:

isCancelled in interface Future

public boolean isDone()[source]
Specified by:

isDone in interface Future