Fix TransactionContextWrapper limiter accounting
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / TransactionOperation.java
index 3defd2cc50a98a1299ed79de1d2af9f8a7ccb5c7..962d26133b1b546b1953bb8e0cd7667593fda269 100644 (file)
@@ -7,6 +7,8 @@
  */
 package org.opendaylight.controller.cluster.datastore;
 
+import org.eclipse.jdt.annotation.Nullable;
+
 /**
  * Abstract superclass for transaction operations which should be executed
  * on a {@link TransactionContext} at a later point in time.
@@ -16,6 +18,8 @@ abstract class TransactionOperation {
      * Execute the delayed operation.
      *
      * @param transactionContext the TransactionContext
+     * @param havePermit Boolean indicator if this operation has tried and acquired a permit, null if there was no
+     *                   attempt to acquire a permit.
      */
-    protected abstract void invoke(TransactionContext transactionContext);
+    protected abstract void invoke(TransactionContext transactionContext, @Nullable Boolean havePermit);
 }