X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-akka-raft%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fraft%2FConfigParams.java;h=fd49737cac45285e1fc1c89d82a157dad5179953;hp=4245cf10f778fc81fe3181b0db5d9b825ea23a4c;hb=e3998d55e33da9f6ecb69da75ecc71a047b6362b;hpb=3a71a222b896b9d07e638af62300180799bdac67 diff --git a/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/ConfigParams.java b/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/ConfigParams.java index 4245cf10f7..fd49737cac 100644 --- a/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/ConfigParams.java +++ b/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/ConfigParams.java @@ -75,5 +75,13 @@ public interface ConfigParams { * The interval in which the leader needs to check itself if its isolated * @return FiniteDuration */ - FiniteDuration getIsolatedCheckInterval(); + long getIsolatedCheckIntervalInMillis(); + + + /** + * The multiplication factor to be used to determine shard election timeout. The election timeout + * is determined by multiplying the election timeout factor with the heartbeat duration. + */ + long getElectionTimeoutFactor(); + }