Class AbstractFutureProxy<V>
java.lang.Object
org.apache.commons.lang3.concurrent.AbstractFutureProxy<V>
- Type Parameters:
V- The result type returned by this Future'sget()andget(long, TimeUnit)methods.
- All Implemented Interfaces:
Future<V>
Proxies to a
Future for subclassing.- Since:
- 3.13.0
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AbstractFutureProxy
Constructs a new instance.- Parameters:
future- the delegate.
-
-
Method Details
-
cancel
-
get
- Specified by:
getin interfaceFuture<V>- Throws:
InterruptedExceptionExecutionException
-
get
public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
getin interfaceFuture<V>- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-
getFuture
Gets the delegate.- Returns:
- the delegate.
-
isCancelled
- Specified by:
isCancelledin interfaceFuture<V>
-
isDone
-