Class ForwardingFuture<V extends @Nullable Object>

java.lang.Object
com.google.common.collect.ForwardingObject
com.google.common.util.concurrent.ForwardingFuture<V>
All Implemented Interfaces:
Future<V>
Direct Known Subclasses:
ForwardingFuture.SimpleForwardingFuture, ForwardingListenableFuture

@GwtCompatible public abstract class ForwardingFuture<V extends @Nullable Object> extends ForwardingObject implements Future<V>
A Future which forwards all its method calls to another future. Subclasses should override one or more methods to modify the behavior of the backing future as desired per the decorator pattern.

Warning: The methods of ForwardingFuture forward indiscriminately to the methods of the delegate. For example, overriding get(long, TimeUnit) alone will not change the behavior of get(), which can lead to unexpected behavior. In this case, you should override get() as well.

default method warning: This class does not forward calls to default methods. Instead, it inherits their default implementations. When those implementations invoke methods, they invoke methods on the ForwardingFuture.

Most subclasses can just use ForwardingFuture.SimpleForwardingFuture.

Since:
1.0
Author:
Sven Mawson