Package bitronix.tm.journal
Class DiskForceBatcherThread
java.lang.Object
java.lang.Thread
bitronix.tm.journal.DiskForceBatcherThread
- All Implemented Interfaces:
Runnable
Thread that executes disk force batches.
- Author:
- lorban
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd the TransactionLogAppender to the wait queue and wait until the disk force is done.static DiskForceBatcherThreadGet the single instance of the DiskForceBatcherThread.voidrun()booleansetAlive(boolean alive) Thread will run for as long as this flag is not false.toString()Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, yield
-
Method Details
-
getInstance
Get the single instance of the DiskForceBatcherThread.- Returns:
- the single instance of the DiskForceBatcherThread.
-
setAlive
public boolean setAlive(boolean alive) Thread will run for as long as this flag is not false.- Parameters:
alive- The new flag value.- Returns:
- the old flag value.
-
enqueue
Add the TransactionLogAppender to the wait queue and wait until the disk force is done.- Parameters:
tla- the TransactionLogAppender
-
run
public void run() -
toString
-