I - the return value of the delegateO - the return value of this Futurepublic abstract class TransformingFuture<I,O> extends Object implements Future<O>
get(long, TimeUnit) method.| Constructor and Description |
|---|
TransformingFuture(Future<I> delegate)
Creates a new ForwardingFuture.
|
public TransformingFuture(Future<I> delegate)
delegate - the Future to forward calls toNullPointerException - if input is nullpublic boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled in interface Future<O>public O get() throws InterruptedException, ExecutionException
get in interface Future<O>InterruptedExceptionExecutionExceptionpublic abstract O get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<O>InterruptedExceptionExecutionExceptionTimeoutExceptionCopyright © 2011. All Rights Reserved.