Force install snapshot when follower log is ahead
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / RaftActorContext.java
index 6b5fffe33103f4626c17b6b3587dadd37d1a7ad8..a099b996236df9b1b668cd61a67cf00460cae529 100644 (file)
@@ -243,6 +243,11 @@ public interface RaftActorContext {
      */
     boolean isVotingMember();
 
+    /**
+     * @return true if there are any voting peers, false otherwise.
+     */
+    boolean anyVotingPeers();
+
     /**
      * @return current behavior attached to the raft actor.
      */