On this page

AbstractFutureProxy

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

Proxies to a Future for subclassing.

Parameters:

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

Since:

3.13.0

Constructors

AbstractFutureProxy(Future)

Constructs a new instance.

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

Constructs a new instance.

Parameters:

future – The delegate.

Methods

cancel(boolean)

get()

get(long, TimeUnit)

getFuture()

Gets the delegate.

isCancelled()

isDone()

@Override public boolean cancel(boolean mayInterruptIfRunning)[source]
@Override public V get() throws InterruptedException, ExecutionException[source]
@Override public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException[source]
public Future<V> getFuture()[source]

Gets the delegate.

Returns:

The delegate.

@Override public boolean isCancelled()[source]
@Override public boolean isDone()[source]