public abstract class FutureAdapter<V> extends Object implements Future<V>
Modifier and Type | Class and Description |
---|---|
static class |
FutureAdapter.Present<V> |
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(org.neo4j.function.Supplier<T> supplier,
CountDownLatch guardedByLatch,
String jobDescription) |
static <T> Future<T> |
latchGuardedValue(ValueGetter<T> value,
CountDownLatch guardedByLatch,
String jobDescription)
Deprecated.
|
static <T> FutureAdapter.Present<T> |
present(T value) |
static Future<Integer> |
processFuture(Process process) |
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled
in interface Future<V>
public static <T> FutureAdapter.Present<T> present(T value)
@Deprecated public static <T> Future<T> latchGuardedValue(ValueGetter<T> value, CountDownLatch guardedByLatch, String jobDescription)
latchGuardedValue(Supplier, CountDownLatch, String)
insteadT
- the typevalue
- the value getterguardedByLatch
- the guardjobDescription
- descriptionpublic static <T> Future<T> latchGuardedValue(org.neo4j.function.Supplier<T> supplier, CountDownLatch guardedByLatch, String jobDescription)
Copyright © 2002–2015 The Neo4j Graph Database Project. All rights reserved.