CountDownLatch electionLatch) {
this.repNode = repNode;
this.maxRetries = maxRetries;
pendingRetries = maxRetries;
this.electionLatch = electionLatch;
final RepImpl repImpl = repNode.getRepImpl();
final IntConfigParam retriesParam =
RepParams.ELECTIONS_PRIMARY_RETRIES;
primaryRetries = (repImpl != null) ?
repImpl.getConfigManager().getInt(retriesParam) :
Integer.parseInt(retriesParam.getDefault());
}