T - the future result type of an asynchronous operation.@Contract(threading=IMMUTABLE) public class CompletedFuture<T> extends Object implements Future<T>, Cancellable
| Constructor and Description |
|---|
CompletedFuture(T result) |
public CompletedFuture(T result)
public boolean isCancelled()
isCancelled in interface Future<T>public boolean cancel(boolean mayInterruptIfRunning)
public boolean cancel()
Cancellablecancel in interface Cancellabletrue if the operation or process has been cancelled as a result of
this method call or false if it has already been cancelled or not started.Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.