@NotThreadSafe public final class UfsJournalCheckpointThread extends Thread
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
UfsJournalCheckpointThread(Master master,
UfsJournal journal,
java.util.function.Supplier<Set<JournalSink>> journalSinks)
Creates a new instance of
UfsJournalCheckpointThread . |
Modifier and Type | Method and Description |
---|---|
void |
awaitTermination(boolean waitQuietPeriod)
Initiates the shutdown of this checkpointer thread, and also waits for it to finish.
|
long |
getNextSequenceNumber()
This should only be called after
awaitTermination(boolean) . |
void |
run() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public UfsJournalCheckpointThread(Master master, UfsJournal journal, java.util.function.Supplier<Set<JournalSink>> journalSinks)
UfsJournalCheckpointThread
.master
- the master to apply the journal entries tojournal
- the journaljournalSinks
- a supplier for journal sinkspublic void awaitTermination(boolean waitQuietPeriod)
waitQuietPeriod
- whether to wait for a quiet period to pass before terminating the threadpublic long getNextSequenceNumber()
awaitTermination(boolean)
.Copyright © 2023. All Rights Reserved.