org.multiverse.api.lifecycle
Interface TransactionLifecycleListener


public interface TransactionLifecycleListener

With the TransactionLifecycleListener it is possible to listen to certain events in the transaction (aborting/committing).

Author:
Peter Veentjer

Method Summary
 void notify(Transaction tx, TransactionLifecycleEvent event)
          Is called by the Transaction when the event occurs.
 

Method Detail

notify

void notify(Transaction tx,
            TransactionLifecycleEvent event)
Is called by the Transaction when the event occurs. If an exception is thrown while executing this method, it could be that other listeners are not notified.

If this method fails before committing, the transaction is aborted no matter what.

Parameters:
tx - the Transaction that triggered the event.
event - the TransactionLifecycleEvent t is currently in.


Copyright © 2008-2010 Multiverse. All Rights Reserved.