Class ForwardingFuture<V extends @Nullable Object>

java.lang.Object
dev.mccue.guava.collect.ForwardingObject
dev.mccue.guava.concurrent.ForwardingFuture<V>
All Implemented Interfaces:
Future<V>
Direct Known Subclasses:
ForwardingFuture.SimpleForwardingFuture, ForwardingListenableFuture

public abstract class ForwardingFuture<V extends @Nullable Object> extends dev.mccue.guava.collect.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.

Most subclasses can just use SimpleForwardingFuture.

Since:
1.0
Author:
Sven Mawson
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    A simplified version of ForwardingFuture where subclasses can pass in an already constructed Future as the delegate.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Constructor for use by subclasses.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    cancel(boolean mayInterruptIfRunning)
     
    protected abstract Future<? extends V>
     
    get()
     
    get(long timeout, TimeUnit unit)
     
    boolean
     
    boolean
     

    Methods inherited from class dev.mccue.guava.collect.ForwardingObject

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait