org.neo4j.cluster
Class DelayedDirectExecutor
java.lang.Object
java.util.concurrent.AbstractExecutorService
org.neo4j.cluster.DelayedDirectExecutor
- All Implemented Interfaces:
- Executor, ExecutorService
public class DelayedDirectExecutor
- extends AbstractExecutorService
Executor that executes the Runnables when drain() is called. Allows asynch jobs to be scheduled, and then
run in a synchronous fashion.
DelayedDirectExecutor
public DelayedDirectExecutor()
shutdown
public void shutdown()
shutdownNow
public List<Runnable> shutdownNow()
isShutdown
public boolean isShutdown()
isTerminated
public boolean isTerminated()
awaitTermination
public boolean awaitTermination(long timeout,
TimeUnit unit)
throws InterruptedException
- Throws:
InterruptedException
execute
public void execute(Runnable command)
drain
public void drain()
Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.