Move operation limiter down to TransactionContextWrapper
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / TransactionContext.java
index 4eea785964b1e8ef9b4023390547a813408863e4..e5130ed6dc78df0420bc811c4c18546df139db0b 100644 (file)
@@ -36,4 +36,14 @@ interface TransactionContext {
     boolean supportsDirectCommit();
 
     Future<Object> directCommit();
+
+    /**
+     * Invoked by {@link TransactionContextWrapper} when it has finished handing
+     * off operations to this context. From this point on, the context is responsible
+     * for throttling operations.
+     *
+     * Implementations can rely on the wrapper calling this operation in a synchronized
+     * block, so they do not need to ensure visibility of this state transition themselves.
+     */
+    void operationHandoffComplete();
 }