Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix TransactionContextWrapper limiter accounting
[controller.git]
/
opendaylight
/
md-sal
/
sal-distributed-datastore
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
datastore
/
TransactionOperation.java
diff --git
a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/TransactionOperation.java
b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/TransactionOperation.java
index dc965edec76ecf7127d95088c73c7fc695fb6747..962d26133b1b546b1953bb8e0cd7667593fda269 100644
(file)
--- a/
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/TransactionOperation.java
+++ b/
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/TransactionOperation.java
@@
-7,6
+7,8
@@
*/
package org.opendaylight.controller.cluster.datastore;
*/
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.
/**
* Abstract superclass for transaction operations which should be executed
* on a {@link TransactionContext} at a later point in time.
@@
-15,7
+17,9
@@
abstract class TransactionOperation {
/**
* Execute the delayed operation.
*
/**
* Execute the delayed operation.
*
- * @param transactionContext
+ * @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
);
}
}