Class XATransactionState.CancelXATransactionTask

  • All Implemented Interfaces:
    java.lang.Runnable
    Enclosing class:
    XATransactionState

    private static class XATransactionState.CancelXATransactionTask
    extends java.util.TimerTask
    The implementation of TimerTask to cancel a global transaction.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean cancel()  
      void run()
      Runs the cancel task of the global transaction
      • Methods inherited from class java.util.TimerTask

        scheduledExecutionTime
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • 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 Detail

      • cancel

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

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