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
  • Method Details

    • 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