public class RaftJournalProgressLogger extends AbstractJournalProgressLogger
RaftJournalSystem
.MAX_LOG_INTERVAL_MS
Constructor and Description |
---|
RaftJournalProgressLogger(JournalStateMachine journal,
OptionalLong endCommitIdx)
Creates a new instance of the logger.
|
Modifier and Type | Method and Description |
---|---|
String |
getJournalName() |
long |
getLastAppliedIndex() |
logProgress
public RaftJournalProgressLogger(JournalStateMachine journal, OptionalLong endCommitIdx)
journal
- the journal being replayedendCommitIdx
- the final commit index in the log to estimate completion timespublic long getLastAppliedIndex()
getLastAppliedIndex
in class AbstractJournalProgressLogger
public String getJournalName()
getJournalName
in class AbstractJournalProgressLogger
Copyright © 2023. All Rights Reserved.