-
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 toSession.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 Type Method Description default void
onAbort(Session session)
default void
onCommit(Session session)
default void
onParallelAbort(Session session)
default void
onParallelCommit(Session session)
default void
onParallelPreCommit(Session session)
default void
onPreCommit(Session session)
default void
onPrepare(Session session)
default void
onPrePrepare(Session session)
-
-
-
Method Detail
-
onAbort
default void onAbort(Session session) throws SQLException
- Throws:
SQLException
-
onCommit
default void onCommit(Session session) throws SQLException
- Throws:
SQLException
-
onPrepare
default void onPrepare(Session session) throws SQLException
- Throws:
SQLException
-
onPreCommit
default void onPreCommit(Session session) throws SQLException
- Throws:
SQLException
-
onPrePrepare
default void onPrePrepare(Session session) throws SQLException
- Throws:
SQLException
-
onParallelCommit
default void onParallelCommit(Session session) throws SQLException
- Throws:
SQLException
-
onParallelAbort
default void onParallelAbort(Session session) throws SQLException
- Throws:
SQLException
-
onParallelPreCommit
default void onParallelPreCommit(Session session) throws SQLException
- Throws:
SQLException
-
-