Class CountDownCommitBarrier.RestorePartiesCompensatingTask

  • All Implemented Interfaces:
    TxnListener
    Enclosing class:
    CountDownCommitBarrier

    private class CountDownCommitBarrier.RestorePartiesCompensatingTask
    extends java.lang.Object
    implements TxnListener
    A TransactionLifecycleListener that is responsible for restoring the the number of parties after the transaction that increased them, was aborted.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int extra  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void notify​(Txn tx, TxnEvent event)
      Notifies that a certain TxnEvent happened inside a Txn.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • extra

        private final int extra
    • Constructor Detail

      • RestorePartiesCompensatingTask

        RestorePartiesCompensatingTask​(int extra)
    • Method Detail

      • notify

        public void notify​(Txn tx,
                           TxnEvent event)
        Description copied from interface: TxnListener
        Notifies that a certain TxnEvent happened inside a Txn.
        Specified by:
        notify in interface TxnListener
        Parameters:
        tx - the Txn where the event happened
        event - the event