01: /*
02: * Licensed under the X license (see http://www.x.org/terms.htm)
03: */
04: package org.ofbiz.minerva.pool.jdbc.xa.wrapper;
05:
06: /**
07: * Callback for notification when a transaction is finished.
08: *
09: * @author Aaron Mulder (ammulder@alumni.princeton.edu)
10: */
11: public interface TransactionListener {
12:
13: /**
14: * Indicates that the transaction this instance was part of has finished.
15: */
16: public void transactionFinished(XAConnectionImpl con);
17:
18: /**
19: * Indicates that the transaction this instance was part of has finished,
20: * and there was a fatal error. Any pooled resources should be recycled.
21: */
22: public void transactionFailed(XAConnectionImpl con);
23: }
|