Package st.orm.spi

Interface QueryObserver.TransactionObservation

Enclosing interface:
QueryObserver

public static interface QueryObserver.TransactionObservation
Tracks a single observed physical transaction.
Since:
1.13
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    An observation that ignores all signals.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    close(boolean rolledBack)
    Signals that the observed transaction has completed.
    void
    error(Throwable throwable)
    Signals that completing the observed transaction failed.
  • Field Details

  • Method Details

    • error

      void error(Throwable throwable)
      Signals that completing the observed transaction failed.

      Invoked at most once, before close(boolean).

      Parameters:
      throwable - the failure.
    • close

      void close(boolean rolledBack)
      Signals that the observed transaction has completed.

      Invoked exactly once per observation.

      Parameters:
      rolledBack - whether the transaction rolled back rather than committed.