Class DummyXaResource

java.lang.Object
org.mule.test.transactional.connection.DummyXaResource
All Implemented Interfaces:
XAResource, org.mule.runtime.core.api.util.queue.QueueSession

public class DummyXaResource extends Object implements XAResource, org.mule.runtime.core.api.util.queue.QueueSession
  • Field Details

    • logger

      protected static final org.slf4j.Logger logger
  • Constructor Details

    • DummyXaResource

      public DummyXaResource()
  • Method Details

    • commit

      public void commit(Xid xid, boolean b) throws XAException
      Specified by:
      commit in interface XAResource
      Throws:
      XAException
    • end

      public void end(Xid xid, int i) throws XAException
      Specified by:
      end in interface XAResource
      Throws:
      XAException
    • forget

      public void forget(Xid xid) throws XAException
      Specified by:
      forget in interface XAResource
      Throws:
      XAException
    • getTransactionTimeout

      public int getTransactionTimeout() throws XAException
      Specified by:
      getTransactionTimeout in interface XAResource
      Throws:
      XAException
    • isSameRM

      public boolean isSameRM(XAResource xaResource) throws XAException
      Specified by:
      isSameRM in interface XAResource
      Throws:
      XAException
    • prepare

      public int prepare(Xid xid) throws XAException
      Specified by:
      prepare in interface XAResource
      Throws:
      XAException
    • recover

      public Xid[] recover(int i) throws XAException
      Specified by:
      recover in interface XAResource
      Throws:
      XAException
    • rollback

      public void rollback(Xid xid) throws XAException
      Specified by:
      rollback in interface XAResource
      Throws:
      XAException
    • setTransactionTimeout

      public boolean setTransactionTimeout(int i) throws XAException
      Specified by:
      setTransactionTimeout in interface XAResource
      Throws:
      XAException
    • start

      public void start(Xid xid, int i) throws XAException
      Specified by:
      start in interface XAResource
      Throws:
      XAException
    • getQueue

      public org.mule.runtime.core.api.util.queue.Queue getQueue(String name)
      Specified by:
      getQueue in interface org.mule.runtime.core.api.util.queue.QueueSession
    • begin

      public void begin() throws org.mule.runtime.core.api.transaction.xa.ResourceManagerException
      Specified by:
      begin in interface org.mule.runtime.core.api.util.queue.QueueSession
      Throws:
      org.mule.runtime.core.api.transaction.xa.ResourceManagerException
    • commit

      public void commit() throws org.mule.runtime.core.api.transaction.xa.ResourceManagerException
      Specified by:
      commit in interface org.mule.runtime.core.api.util.queue.QueueSession
      Throws:
      org.mule.runtime.core.api.transaction.xa.ResourceManagerException
    • rollback

      public void rollback() throws org.mule.runtime.core.api.transaction.xa.ResourceManagerException
      Specified by:
      rollback in interface org.mule.runtime.core.api.util.queue.QueueSession
      Throws:
      org.mule.runtime.core.api.transaction.xa.ResourceManagerException
    • isCommitStarted

      public boolean isCommitStarted()
    • isPrepared

      public boolean isPrepared()
    • isTxEnded

      public boolean isTxEnded()
    • isRollbackExecuted

      public boolean isRollbackExecuted()
    • isTxStarted

      public boolean isTxStarted()