java.lang.Object
io.debezium.connector.oracle.logminer.processor.AbstractTransaction
io.debezium.connector.oracle.logminer.processor.ehcache.EhcacheTransaction
All Implemented Interfaces:
Transaction

public class EhcacheTransaction extends AbstractTransaction
A AbstractTransaction implementation for Ehcache off-heap caches.
Author:
Chris Cranford
  • Field Details

    • numberOfEvents

      private int numberOfEvents
  • Constructor Details

    • EhcacheTransaction

      public EhcacheTransaction(String transactionId, Scn startScn, Instant changeTime, String userName, Integer redoThread)
    • EhcacheTransaction

      public EhcacheTransaction(String transactionId, Scn startScn, Instant changeTime, String userName, Integer redoThread, int numberOfEvents)
  • Method Details

    • getNumberOfEvents

      public int getNumberOfEvents()
      Description copied from interface: Transaction
      Get the number of events participating in the transaction.
      Returns:
      the number of transaction events
    • getNextEventId

      public int getNextEventId()
      Description copied from interface: Transaction
      Helper method to get the next event identifier for the transaction.
      Returns:
      the next event identifier
    • start

      public void start()
      Description copied from interface: Transaction
      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.