public interface TransactionListener
Interface for a listener to be notified of prepare, and commit, abort,
or other phase transitions, of distributed transactions. To receive
such notifications, implement this interface, with the methods that
will be called in the cases of interest, and pass an instance to
Session.addTransactionListener(org.postgresql.pljava.TransactionListener). The default implementations of these
methods do nothing.
TransactionListener exposes a
PostgreSQL-specific function that is more internal than the documented
SPI.- Author:
- Thomas Hallgren
-
Method Summary
Modifier and TypeMethodDescriptiondefault voiddefault voiddefault voidonParallelAbort(Session session) default voidonParallelCommit(Session session) default voidonParallelPreCommit(Session session) default voidonPreCommit(Session session) default voiddefault voidonPrePrepare(Session session)
-
Method Details
-
onAbort
- Throws:
SQLException
-
onCommit
- Throws:
SQLException
-
onPrepare
- Throws:
SQLException
-
onPreCommit
- Throws:
SQLException
-
onPrePrepare
- Throws:
SQLException
-
onParallelCommit
- Throws:
SQLException
-
onParallelAbort
- Throws:
SQLException
-
onParallelPreCommit
- Throws:
SQLException
-