Interface Transaction

All Known Implementing Classes:
AbstractTransaction, InfinispanTransaction, MemoryTransaction

public interface Transaction
Contract for an Oracle transaction.
Author:
Chris Cranford
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the time when the transaction started
    int
    Helper method to get the next event identifier for the transaction.
    int
    Get the number of events participating in the transaction.
    Get the system change number of when the transaction started
    Get the transaction identifier
    Get the username associated with the transaction
    void
    Helper method that resets the event identifier back to 0.
  • Method Details

    • getTransactionId

      String getTransactionId()
      Get the transaction identifier
      Returns:
      the transaction unique identifier, never null
    • getStartScn

      Scn getStartScn()
      Get the system change number of when the transaction started
      Returns:
      the system change number, never null
    • getChangeTime

      Instant getChangeTime()
      Get the time when the transaction started
      Returns:
      the timestamp of the transaction, never null
    • getUserName

      String getUserName()
      Get the username associated with the transaction
      Returns:
      the username, may be null
    • getNumberOfEvents

      int getNumberOfEvents()
      Get the number of events participating in the transaction.
      Returns:
      the number of transaction events
    • getNextEventId

      int getNextEventId()
      Helper method to get the next event identifier for the transaction.
      Returns:
      the next event identifier
    • start

      void start()
      Helper method that resets the event identifier back to 0. This should be called when a transaction START event is detected in the event stream. This is required when LOB support is enabled to facilitate the re-mining of existing events.