public static class Operations.CompletedFuture<T> extends Object implements Future<T>
| Constructor and Description |
|---|
Operations.CompletedFuture(T result) |
public Operations.CompletedFuture(T result)
public T get() throws InterruptedException, ExecutionException
get in interface Future<T>InterruptedExceptionExecutionExceptionpublic T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<T>InterruptedExceptionExecutionExceptionTimeoutExceptionpublic boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled in interface Future<T>Copyright © 1999–2018 The Apache Software Foundation. All rights reserved.