bitronix.tm.journal
Class DiskForceBatcherThread
java.lang.Object
java.lang.Thread
bitronix.tm.journal.DiskForceBatcherThread
- All Implemented Interfaces:
- Runnable
public final class DiskForceBatcherThread
- extends Thread
Thread that executes disk force batches.
- Author:
- lorban
Methods inherited from class java.lang.Thread |
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, yield |
getInstance
public static DiskForceBatcherThread 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
public void enqueue(TransactionLogAppender tla)
- Add the TransactionLogAppender to the wait queue and wait until the disk force is done.
- Parameters:
tla
- the TransactionLogAppender
run
public void run()
- Specified by:
run
in interface Runnable
- Overrides:
run
in class Thread
toString
public String toString()
- Overrides:
toString
in class Thread
Copyright © 2006-2013 Bitronix Software. All Rights Reserved.