@Test public void testGetRaftPolicyWithDefault() { DefaultConfigParamsImpl params = new DefaultConfigParamsImpl(); assertEquals("Default instance", DefaultRaftPolicy.INSTANCE, params.getRaftPolicy()); }
@Override public RaftPolicy getRaftPolicy() { return policySupplier.get(); }
DefaultConfigParamsImpl implements ConfigParams { @Override public RaftPolicy getRaftPolicy() { return policySupplier.get(); } }
DefaultConfigParamsImpl implements ConfigParams { @Override public RaftPolicy getRaftPolicy() { return policySupplier.get(); }  }
DefaultConfigParamsImpl implements ConfigParams { @Override public RaftPolicy getRaftPolicy() { return policySupplier.get(); }  void setHeartBeatInterval(final FiniteDuration heartBeatInterval); void setSnapshotBatchCount(final long snapshotBatchCount); void setRecoverySnapshotIntervalSeconds(int recoverySnapshotInterval); void setSnapshotDataThresholdPercentage(final int snapshotDataThresholdPercentage); void setSnapshotDataThreshold(final int snapshotDataThreshold); void setSnapshotChunkSize(final int snapshotChunkSize); void setJournalRecoveryLogBatchSize(final int journalRecoveryLogBatchSize); void setIsolatedLeaderCheckInterval(final FiniteDuration isolatedLeaderCheckInterval); void setElectionTimeoutFactor(final long electionTimeoutFactor); void setCandidateElectionTimeoutDivisor(final long candidateElectionTimeoutDivisor); void setTempFileDirectory(final String tempFileDirectory); void setFileBackedStreamingThreshold(final int fileBackedStreamingThreshold); void setCustomRaftPolicyImplementationClass(final String customRaftPolicyImplementationClass); @Override String getCustomRaftPolicyImplementationClass(); @Override long getSnapshotBatchCount(); @Override int getSnapshotDataThresholdPercentage(); @Override int getSnapshotDataThreshold(); @Override int getRecoverySnapshotIntervalSeconds(); @Override FiniteDuration getHeartBeatInterval(); @Override FiniteDuration getElectionTimeOutInterval(); @Override long getCandidateElectionTimeoutDivisor(); @Override int getElectionTimeVariance(); @Override int getSnapshotChunkSize(); @Override int getJournalRecoveryLogBatchSize(); @Override long getIsolatedCheckIntervalInMillis(); @Override long getElectionTimeoutFactor(); @Override RaftPolicy getRaftPolicy(); @Override String getTempFileDirectory(); @Override int getFileBackedStreamingThreshold(); @Override PeerAddressResolver getPeerAddressResolver(); void setPeerAddressResolver(final @NonNull PeerAddressResolver peerAddressResolver); @Override long getSyncIndexThreshold(); void setSyncIndexThreshold(final long syncIndexThreshold); }
DefaultConfigParamsImpl implements ConfigParams { @Override public RaftPolicy getRaftPolicy() { return policySupplier.get(); }  void setHeartBeatInterval(final FiniteDuration heartBeatInterval); void setSnapshotBatchCount(final long snapshotBatchCount); void setRecoverySnapshotIntervalSeconds(int recoverySnapshotInterval); void setSnapshotDataThresholdPercentage(final int snapshotDataThresholdPercentage); void setSnapshotDataThreshold(final int snapshotDataThreshold); void setSnapshotChunkSize(final int snapshotChunkSize); void setJournalRecoveryLogBatchSize(final int journalRecoveryLogBatchSize); void setIsolatedLeaderCheckInterval(final FiniteDuration isolatedLeaderCheckInterval); void setElectionTimeoutFactor(final long electionTimeoutFactor); void setCandidateElectionTimeoutDivisor(final long candidateElectionTimeoutDivisor); void setTempFileDirectory(final String tempFileDirectory); void setFileBackedStreamingThreshold(final int fileBackedStreamingThreshold); void setCustomRaftPolicyImplementationClass(final String customRaftPolicyImplementationClass); @Override String getCustomRaftPolicyImplementationClass(); @Override long getSnapshotBatchCount(); @Override int getSnapshotDataThresholdPercentage(); @Override int getSnapshotDataThreshold(); @Override int getRecoverySnapshotIntervalSeconds(); @Override FiniteDuration getHeartBeatInterval(); @Override FiniteDuration getElectionTimeOutInterval(); @Override long getCandidateElectionTimeoutDivisor(); @Override int getElectionTimeVariance(); @Override int getSnapshotChunkSize(); @Override int getJournalRecoveryLogBatchSize(); @Override long getIsolatedCheckIntervalInMillis(); @Override long getElectionTimeoutFactor(); @Override RaftPolicy getRaftPolicy(); @Override String getTempFileDirectory(); @Override int getFileBackedStreamingThreshold(); @Override PeerAddressResolver getPeerAddressResolver(); void setPeerAddressResolver(final @NonNull PeerAddressResolver peerAddressResolver); @Override long getSyncIndexThreshold(); void setSyncIndexThreshold(final long syncIndexThreshold); static final FiniteDuration HEART_BEAT_INTERVAL; }