public abstract static class ForwardingListenableFuture.SimpleForwardingListenableFuture<V> extends ForwardingListenableFuture<V>
ForwardingListenableFuture
where subclasses
can pass in an already constructed ListenableFuture
as the delegate.ForwardingListenableFuture.SimpleForwardingListenableFuture<V>
ForwardingFuture.SimpleForwardingFuture<V>
Modifier | Constructor and Description |
---|---|
protected |
ForwardingListenableFuture.SimpleForwardingListenableFuture(ListenableFuture<V> delegate) |
Modifier and Type | Method and Description |
---|---|
protected ListenableFuture<V> |
delegate()
Returns the backing delegate instance that methods are forwarded to.
|
addListener
cancel, get, get, isCancelled, isDone
toString
protected ForwardingListenableFuture.SimpleForwardingListenableFuture(ListenableFuture<V> delegate)
protected final ListenableFuture<V> delegate()
ForwardingObject
ForwardingSet.delegate()
. Concrete subclasses override this method to supply
the instance being decorated.delegate
in class ForwardingListenableFuture<V>
Copyright © 2010-2014. All Rights Reserved.