Class TransactionMonitor


  • @NotThreadSafe
    public class TransactionMonitor
    extends Object
    The class has externalized its state in TransactionContext context class so it can be stored in and recovered from offsets. The class receives all processed events and keeps the transaction tracking depending on transaction id. Upon transaction change the metadata events are delivered to a dedicated topic informing about START/END of the transaction, including transaction id and in case of END event the amount of events generated by the transaction.

    Every event seen has its source block enriched to contain

    • transaction id
    • the total event order in the transaction
    • the order of event per table/collection source in the transaction
    Author:
    Jiri Pechanec