Neo4j Enterprise

org.neo4j.cluster
Class DelayedDirectExecutor

java.lang.Object
  extended by java.util.concurrent.AbstractExecutorService
      extended by 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.


Constructor Summary
DelayedDirectExecutor()
           
 
Method Summary
 boolean awaitTermination(long timeout, TimeUnit unit)
           
 void drain()
           
 void execute(Runnable command)
           
 boolean isShutdown()
           
 boolean isTerminated()
           
 void shutdown()
           
 List<Runnable> shutdownNow()
           
 
Methods inherited from class java.util.concurrent.AbstractExecutorService
invokeAll, invokeAll, invokeAny, invokeAny, submit, submit, submit
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelayedDirectExecutor

public DelayedDirectExecutor()
Method Detail

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()

Neo4j Enterprise

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