V
- The result type returned by this Future's get()
and get(long, TimeUnit)
methods.public abstract class AbstractFutureProxy<V> extends Object implements Future<V>
Future
for subclassing.Constructor and Description |
---|
AbstractFutureProxy(Future<V> future)
Constructs a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
V |
get() |
V |
get(long timeout,
TimeUnit unit) |
Future<V> |
getFuture()
Gets the delegate.
|
boolean |
isCancelled() |
boolean |
isDone() |
public AbstractFutureProxy(Future<V> future)
future
- the delegate.public boolean cancel(boolean mayInterruptIfRunning)
public V get() throws InterruptedException, ExecutionException
get
in interface Future<V>
InterruptedException
ExecutionException
public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get
in interface Future<V>
InterruptedException
ExecutionException
TimeoutException
public boolean isCancelled()
isCancelled
in interface Future<V>
Copyright © 2001–2023 The Apache Software Foundation. All rights reserved.