org.neo4j.kernel
Class TransactionEventHandlers
java.lang.Object
org.neo4j.kernel.TransactionEventHandlers
- All Implemented Interfaces:
- Lifecycle
public class TransactionEventHandlers
- extends Object
- implements Lifecycle
Handle the collection of transaction event handlers, and fire events as needed.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
transactionEventHandlers
protected final Collection<TransactionEventHandler> transactionEventHandlers
TransactionEventHandlers
public TransactionEventHandlers(TransactionManager txManager)
init
public void init()
throws Throwable
- Specified by:
init
in interface Lifecycle
- Throws:
Throwable
start
public void start()
throws Throwable
- Specified by:
start
in interface Lifecycle
- Throws:
Throwable
stop
public void stop()
throws Throwable
- Specified by:
stop
in interface Lifecycle
- Throws:
Throwable
shutdown
public void shutdown()
throws Throwable
- Specified by:
shutdown
in interface Lifecycle
- Throws:
Throwable
registerTransactionEventHandler
public <T> TransactionEventHandler<T> registerTransactionEventHandler(TransactionEventHandler<T> handler)
unregisterTransactionEventHandler
public <T> TransactionEventHandler<T> unregisterTransactionEventHandler(TransactionEventHandler<T> handler)
hasHandlers
public boolean hasHandlers()
beforeCompletion
public void beforeCompletion(TransactionData transactionData,
List<TransactionEventHandlers.HandlerAndState> states)
afterCompletion
public void afterCompletion(TransactionData transactionData,
int status,
List<TransactionEventHandlers.HandlerAndState> states)
Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.