org.neo4j.helpers
Class FutureAdapter<V>

java.lang.Object
  extended by org.neo4j.helpers.FutureAdapter<V>
All Implemented Interfaces:
Future<V>
Direct Known Subclasses:
FutureAdapter.Present

public abstract class FutureAdapter<V>
extends Object
implements Future<V>


Nested Class Summary
static class FutureAdapter.Present<V>
           
 
Field Summary
static Future<Void> VOID
           
 
Constructor Summary
FutureAdapter()
           
 
Method Summary
 boolean cancel(boolean mayInterruptIfRunning)
           
static
<T> Future<T>
future(Callable<T> task)
           
 boolean isCancelled()
           
static
<T> Future<T>
latchGuardedValue(ValueGetter<T> value, CountDownLatch guardedByLatch)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.concurrent.Future
get, get, isDone
 

Field Detail

VOID

public static final Future<Void> VOID
Constructor Detail

FutureAdapter

public FutureAdapter()
Method Detail

cancel

public boolean cancel(boolean mayInterruptIfRunning)
Specified by:
cancel in interface Future<V>

isCancelled

public boolean isCancelled()
Specified by:
isCancelled in interface Future<V>

latchGuardedValue

public static <T> Future<T> latchGuardedValue(ValueGetter<T> value,
                                              CountDownLatch guardedByLatch)

future

public static <T> Future<T> future(Callable<T> task)


Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.