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