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 endComitIdx)
Creates a new instance of
AbstractJournalProgressLogger . |
Modifier and Type | Method and Description |
---|---|
abstract String |
getJournalName() |
abstract long |
getLastAppliedIndex() |
boolean |
logProgress()
Logs the progress of journal replay.
|
public static final long MAX_LOG_INTERVAL_MS
public AbstractJournalProgressLogger(OptionalLong endComitIdx)
AbstractJournalProgressLogger
.endComitIdx
- the final commit index in the journal. Used to estimate completion timepublic abstract long getLastAppliedIndex()
public abstract String getJournalName()
public boolean logProgress()
Copyright © 2023. All Rights Reserved.