public abstract class FutureAdapter<V> extends Object implements Future<V>
Modifier and Type | Class and Description |
---|---|
static class |
FutureAdapter.Present<V>
Deprecated.
|
Constructor and Description |
---|
FutureAdapter() |
Modifier and Type | Method and Description |
---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
static <T> Future<T> |
future(Callable<T> task) |
boolean |
isCancelled() |
static <T> Future<T> |
latchGuardedValue(Supplier<T> supplier,
CountDownLatch guardedByLatch,
String jobDescription) |
static <T> FutureAdapter.Present<T> |
present(T value)
Deprecated.
|
static Future<Integer> |
processFuture(Process process) |
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled
in interface Future<V>
@Deprecated public static <T> FutureAdapter.Present<T> present(T value)
T
- type of values that this Future
have.value
- result value.FutureAdapter.Present
future with already specified result
This method will be deleted as part of next major release. Please use CompletableFuture.complete(Object)
instead.public static <T> Future<T> latchGuardedValue(Supplier<T> supplier, CountDownLatch guardedByLatch, String jobDescription)
Copyright © 2002–2018 The Neo4j Graph Database Project. All rights reserved.