org.neo4j.kernel.ha
Class ExecutorLifecycleAdapter
java.lang.Object
org.neo4j.kernel.lifecycle.LifecycleAdapter
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.
| 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 |
ExecutorLifecycleAdapter
public ExecutorLifecycleAdapter(ExecutorService executor)
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.