Class XATransactionState.CancelXATransactionTask

java.lang.Object
java.util.TimerTask
org.apache.derby.jdbc.XATransactionState.CancelXATransactionTask
All Implemented Interfaces:
Runnable
Enclosing class:
XATransactionState

private static class XATransactionState.CancelXATransactionTask extends TimerTask
The implementation of TimerTask to cancel a global transaction.
  • Field Details

  • Constructor Details

    • CancelXATransactionTask

      public CancelXATransactionTask(XATransactionState xaState)
      Creates the cancellation task to be passed to a timer.
      Parameters:
      xaState - the XA state object for the transaction to cancel
  • Method Details

    • cancel

      public boolean cancel()
      Overrides:
      cancel in class TimerTask
    • run

      public void run()
      Runs the cancel task of the global transaction
      Specified by:
      run in interface Runnable
      Specified by:
      run in class TimerTask