Bug 7391: Fix out-of-order LeaderStateChange events
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / ClientRequestTracker.java
index af6f1d453ab59e6d4a1dc8212e9678c17eb01a73..0f14844d5666e5ee6f73f3d7cb005b607c41b3a7 100644 (file)
@@ -9,24 +9,28 @@
 package org.opendaylight.controller.cluster.raft;
 
 import akka.actor.ActorRef;
+import org.opendaylight.yangtools.concepts.Identifier;
 
 public interface ClientRequestTracker {
     /**
+     * Returns the client actor that should be sent a response when consensus is achieved.
      *
-     * @return the client actor that should be sent a response when consensus is achieved
+     * @return the client actor
      */
     ActorRef getClientActor();
 
     /**
+     * Returns the identifier of the object that is to be replicated. For example a transaction identifier in the case
+     * of a transaction.
      *
-     * @return the identifier of the object that is to be replicated. For example a transaction identifier in the case
-     * of a transaction
+     * @return the identifier
      */
-    String getIdentifier();
+    Identifier getIdentifier();
 
     /**
+     * Returns the index of the log entry that is to be replicated.
      *
-     * @return the index of the log entry that is to be replicated
+     * @return the index
      */
     long getIndex();