org.neo4j.kernel.ha
Class ExecutorLifecycleAdapter

java.lang.Object
  extended by org.neo4j.kernel.lifecycle.LifecycleAdapter
      extended by org.neo4j.kernel.ha.ExecutorLifecycleAdapter
All Implemented Interfaces:
Executor, org.neo4j.kernel.lifecycle.Lifecycle

public class ExecutorLifecycleAdapter
extends org.neo4j.kernel.lifecycle.LifecycleAdapter
implements Executor

Allows an ExecutorService to participate in lifecycle events.


Constructor Summary
ExecutorLifecycleAdapter(ExecutorService executor)
           
 
Method Summary
 void execute(Runnable command)
           
 void shutdown()
           
 
Methods inherited from class org.neo4j.kernel.lifecycle.LifecycleAdapter
init, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutorLifecycleAdapter

public ExecutorLifecycleAdapter(ExecutorService executor)
Method Detail

shutdown

public void shutdown()
              throws Throwable
Specified by:
shutdown in interface org.neo4j.kernel.lifecycle.Lifecycle
Overrides:
shutdown in class org.neo4j.kernel.lifecycle.LifecycleAdapter
Throws:
Throwable

execute

public void execute(Runnable command)
Specified by:
execute in interface Executor


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