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 void
default void
default void
onParallelAbort
(Session session) default void
onParallelCommit
(Session session) default void
onParallelPreCommit
(Session session) default void
onPreCommit
(Session session) default void
default void
onPrePrepare
(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
-