public abstract class AbstractJournalProgressLogger extends Object
Modifier and Type | Field and Description |
---|---|
static long |
MAX_LOG_INTERVAL_MS
Max time to wait before actually logging.
|
Constructor and Description |
---|
AbstractJournalProgressLogger(OptionalLong endCommitIdx)
Creates a new instance of
AbstractJournalProgressLogger . |
Modifier and Type | Method and Description |
---|---|
abstract String |
getJournalName() |
abstract long |
getLastAppliedIndex() |
void |
logProgress()
Logs the progress of journal replay.
|
public static final long MAX_LOG_INTERVAL_MS
public AbstractJournalProgressLogger(OptionalLong endCommitIdx)
AbstractJournalProgressLogger
.endCommitIdx
- the final commit index in the journal. Used to estimate completion timepublic abstract long getLastAppliedIndex()
public abstract String getJournalName()
public void logProgress()
Copyright © 2023. All Rights Reserved.