Class GenericXaResource

  • All Implemented Interfaces:
    java.lang.Runnable, XAResource
    Direct Known Subclasses:
    DebugXaResource, ServiceXaWrapper

    public abstract class GenericXaResource
    extends java.lang.Thread
    implements XAResource
    GenericXaResource - Abstract XA Resource implementation supporting a single transaction
    • Nested Class Summary

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

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

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract void commit​(Xid xid, boolean onePhase)  
      void end​(Xid xid, int flag)  
      void enlist()
      Enlists this resource in the current transaction
      void enlist​(Transaction tx)
      Enlists this resource in the current transaction
      void forget​(Xid xid)  
      Transaction getTransaction()  
      int getTransactionTimeout()  
      Xid getXid()  
      boolean isSameRM​(XAResource xaResource)  
      int prepare​(Xid xid)  
      Xid[] recover​(int flag)  
      abstract void rollback​(Xid xid)  
      void run()  
      void runOnTimeout()
      Method which will run when the transaction times out
      void setTransaction​(Transaction t)  
      boolean setTransactionTimeout​(int seconds)  
      void start​(Xid xid, int flag)  
      • 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