public abstract static class ForwardingFuture.SimpleForwardingFuture<V> extends ForwardingFuture<V>
ForwardingFuture
where subclasses
can pass in an already constructed Future
as the delegate.ForwardingFuture.SimpleForwardingFuture<V>
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.Future<V> |
delegate |
Modifier | Constructor and Description |
---|---|
protected |
SimpleForwardingFuture(java.util.concurrent.Future<V> delegate) |
Modifier and Type | Method and Description |
---|---|
protected java.util.concurrent.Future<V> |
delegate()
Returns the backing delegate instance that methods are forwarded to.
|
cancel, get, get, isCancelled, isDone
toString
private final java.util.concurrent.Future<V> delegate
protected SimpleForwardingFuture(java.util.concurrent.Future<V> delegate)
protected final java.util.concurrent.Future<V> delegate()
ForwardingObject
ForwardingSet.delegate()
. Concrete subclasses override this method to supply
the instance being decorated.delegate
in class ForwardingFuture<V>