BUG-5280: implement transaction dispatch
[controller.git] / opendaylight / md-sal / cds-access-api / src / main / java / org / opendaylight / controller / cluster / access / commands / TransactionCanCommitSuccess.java
index e31d75f0773b5807e6afc0000392fb52446951aa..c7d417626a5c1494ba14dfcf4becb3c2f5ed36ed 100644 (file)
@@ -7,28 +7,20 @@
  */
 package org.opendaylight.controller.cluster.access.commands;
 
-import akka.actor.ActorRef;
-import com.google.common.base.Preconditions;
 import org.opendaylight.controller.cluster.access.ABIVersion;
 import org.opendaylight.controller.cluster.access.concepts.TransactionIdentifier;
 
 /**
- * Successful reply to a coordinated commit request. It contains a reference to the actor which is handling the commit
- * process.
+ * Successful reply to a coordinated commit request initiated by a {@link ModifyTransactionRequest}
+ * or {@link CommitLocalTransactionRequest}.
  *
  * @author Robert Varga
  */
 public final class TransactionCanCommitSuccess extends TransactionSuccess<TransactionCanCommitSuccess> {
     private static final long serialVersionUID = 1L;
-    private final ActorRef cohort;
 
-    public TransactionCanCommitSuccess(final TransactionIdentifier identifier, final ActorRef cohort) {
+    public TransactionCanCommitSuccess(final TransactionIdentifier identifier) {
         super(identifier);
-        this.cohort = Preconditions.checkNotNull(cohort);
-    }
-
-    public ActorRef getCohort() {
-        return cohort;
     }
 
     @Override