import akka.actor.Props;
import com.google.common.annotations.VisibleForTesting;
import java.util.Collection;
-import java.util.function.Supplier;
+import java.util.function.LongSupplier;
import javax.annotation.Nullable;
import org.opendaylight.controller.cluster.DataPersistenceProvider;
import org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior;
* @param retriever a supplier of the total memory metric
*/
@VisibleForTesting
- void setTotalMemoryRetriever(Supplier<Long> retriever);
+ void setTotalMemoryRetriever(LongSupplier retriever);
/**
*
*/
boolean isVotingMember();
+ /**
+ * @return true if there are any voting peers, false otherwise.
+ */
+ boolean anyVotingPeers();
+
/**
* @return current behavior attached to the raft actor.
*/