CheckedFuturecannot properly support the chained operations that are the primary goal of
CheckedFuturealso encourages users to rethrow exceptions from one thread in another thread, producing misleading stack traces. Additionally, it has a surprising policy about which exceptions to map and which to leave untouched. Guava users who want a
CheckedFuturecan fork the classes for their own use, possibly specializing them to the particular exception type they use. We recommend that most people use
ListenableFutureand perform any exception wrapping themselves. This class is scheduled for removal from Guava in October 2018.
@Beta @Deprecated public abstract static class ForwardingCheckedFuture.SimpleForwardingCheckedFuture<V,X extends Exception> extends ForwardingCheckedFuture<V,X>
ForwardingCheckedFuturewhere subclasses can pass in an already constructed
CheckedFutureas the delegate.
ForwardingCheckedFuture.SimpleForwardingCheckedFuture<V,X extends Exception>
|Modifier||Constructor and Description|
|Modifier and Type||Method and Description|
Returns the backing delegate instance that methods are forwarded to.
cancel, get, get, isCancelled, isDone
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
protected final CheckedFuture<V,X> delegate()
ForwardingSet.delegate(). Concrete subclasses override this method to supply the instance being decorated.
Copyright © 2010–2019. All rights reserved.