Class DebugXaResource

  • All Implemented Interfaces:
    java.lang.Runnable, javax.transaction.xa.XAResource

    public class DebugXaResource
    extends GenericXaResource
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.lang.Thread

        java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.Exception ex  
      static java.lang.String module  
      • Fields inherited from class java.lang.Thread

        MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
      • Fields inherited from interface javax.transaction.xa.XAResource

        TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void commit​(javax.transaction.xa.Xid xid, boolean onePhase)  
      void enlist()
      Enlists this resource in the current transaction
      void log()  
      void rollback​(javax.transaction.xa.Xid xid)  
      • Methods inherited from class java.lang.Thread

        activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • module

        public static final java.lang.String module
      • ex

        public java.lang.Exception ex
    • Constructor Detail

      • DebugXaResource

        public DebugXaResource​(java.lang.String info)
      • DebugXaResource

        public DebugXaResource()
    • Method Detail

      • commit

        public void commit​(javax.transaction.xa.Xid xid,
                           boolean onePhase)
                    throws javax.transaction.xa.XAException
        Specified by:
        commit in interface javax.transaction.xa.XAResource
        Specified by:
        commit in class GenericXaResource
        Throws:
        javax.transaction.xa.XAException
        See Also:
        XAResource.commit(javax.transaction.xa.Xid xid, boolean onePhase)
      • rollback

        public void rollback​(javax.transaction.xa.Xid xid)
                      throws javax.transaction.xa.XAException
        Specified by:
        rollback in interface javax.transaction.xa.XAResource
        Specified by:
        rollback in class GenericXaResource
        Throws:
        javax.transaction.xa.XAException
        See Also:
        XAResource.rollback(javax.transaction.xa.Xid xid)
      • enlist

        public void enlist()
                    throws javax.transaction.xa.XAException
        Description copied from class: GenericXaResource
        Enlists this resource in the current transaction
        Overrides:
        enlist in class GenericXaResource
        Throws:
        javax.transaction.xa.XAException
      • log

        public void log()