bitronix.tm.journal
Class DiskForceBatcherThread

java.lang.Object
  extended by java.lang.Thread
      extended by bitronix.tm.journal.DiskForceBatcherThread
All Implemented Interfaces:
java.lang.Runnable

public class DiskForceBatcherThread
extends java.lang.Thread

Thread that executes disk force batches.

© Bitronix Software

Author:
lorban

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Method Summary
static void enqueue(TransactionLogAppender tla)
          Add the TransactionLogAppender to the wait queue and wait until the disk force is done.
static DiskForceBatcherThread getInstance()
          Get the single instance of the DiskForceBatcherThread.
 void run()
           
 void setAlive(boolean alive)
          Thread will run for as long as this flag is not false.
 java.lang.String toString()
           
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getInstance

public static DiskForceBatcherThread getInstance()
Get the single instance of the DiskForceBatcherThread.

Returns:
the single instance of the DiskForceBatcherThread.

setAlive

public void setAlive(boolean alive)
Thread will run for as long as this flag is not false.

Parameters:
alive - The new flag value.

enqueue

public static 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 java.lang.Runnable
Overrides:
run in class java.lang.Thread

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Thread