public class UfsJournalProgressLogger extends AbstractJournalProgressLogger
UfsJournal
.MAX_LOG_INTERVAL_MS
Constructor and Description |
---|
UfsJournalProgressLogger(UfsJournal journal,
OptionalLong endCommitIdx,
java.util.function.Supplier<Long> lastIndexSupplier)
Creates a new instance of the journal replay progress logger.
|
Modifier and Type | Method and Description |
---|---|
String |
getJournalName() |
long |
getLastAppliedIndex() |
logProgress
public UfsJournalProgressLogger(UfsJournal journal, OptionalLong endCommitIdx, java.util.function.Supplier<Long> lastIndexSupplier)
journal
- the journal being replayedendCommitIdx
- the final commit index (sequence number) in the journallastIndexSupplier
- supplier that gives the last applied commit (sequence number)public long getLastAppliedIndex()
getLastAppliedIndex
in class AbstractJournalProgressLogger
public String getJournalName()
getJournalName
in class AbstractJournalProgressLogger
Copyright © 2023. All Rights Reserved.