Neo4j

org.neo4j.kernel
Class TransactionEventHandlers

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


Nested Class Summary
static class TransactionEventHandlers.HandlerAndState
           
 
Constructor Summary
TransactionEventHandlers(TransactionManager txManager)
           
 
Method Summary
 void afterCompletion(TransactionData transactionData, int status, List<TransactionEventHandlers.HandlerAndState> states)
           
 void beforeCompletion(TransactionData transactionData, List<TransactionEventHandlers.HandlerAndState> states)
           
 boolean hasHandlers()
           
 void init()
           
<T> TransactionEventHandler<T>
registerTransactionEventHandler(TransactionEventHandler<T> handler)
           
 void shutdown()
           
 void start()
           
 void stop()
           
<T> TransactionEventHandler<T>
unregisterTransactionEventHandler(TransactionEventHandler<T> handler)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionEventHandlers

public TransactionEventHandlers(TransactionManager txManager)
Method Detail

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)

Neo4j

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