Forward pending transactions on leadership change
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / ShardDataTreeCohort.java
index 213e36a570ce1c445e11f8d6e175b37abf9a7388..f7cdd4e8dc3e8c13730e668627e03782703edffc 100644 (file)
@@ -10,6 +10,7 @@ package org.opendaylight.controller.cluster.datastore;
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.util.concurrent.ListenableFuture;
 import org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeCandidateTip;
+import org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeModification;
 
 public abstract class ShardDataTreeCohort {
     ShardDataTreeCohort() {
@@ -17,6 +18,7 @@ public abstract class ShardDataTreeCohort {
     }
 
     abstract DataTreeCandidateTip getCandidate();
+    abstract DataTreeModification getDataTreeModification();
 
     @VisibleForTesting
     public abstract ListenableFuture<Boolean> canCommit();