| Constructor and Description |
|---|
CompletableFuture() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
boolean |
complete(T value)
If not already completed, sets the value returned by
get() and related methods to the given value. |
boolean |
completeExceptionally(Throwable ex)
If not already completed, causes invocations of
get() and related methods to throw the given exception. |
T |
get() |
T |
get(long timeout,
TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
public boolean complete(T value)
get() and related methods to the given value.value - the result valuepublic boolean completeExceptionally(Throwable ex)
get() and related methods to throw the given exception.ex - the exceptionpublic boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled in interface Future<T>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>InterruptedExceptionExecutionExceptionTimeoutExceptionCopyright © 2002–2015 The Neo4j Graph Database Project. All rights reserved.