Class XALiveContextImpl

java.lang.Object
com.swiftmq.impl.xa.standard.XAContextImpl
com.swiftmq.impl.xa.standard.XALiveContextImpl

public class XALiveContextImpl extends XAContextImpl
  • Constructor Details

    • XALiveContextImpl

      public XALiveContextImpl(SwiftletContext ctx, XidImpl xid, boolean prepared)
  • Method Details

    • setPrepared

      public void setPrepared(boolean prepared)
    • isPrepared

      public boolean isPrepared()
    • register

      public int register(String description) throws XAContextException
      Throws:
      XAContextException
    • addTransaction

      public void addTransaction(int id, String queueName, QueueTransaction queueTransaction) throws XAContextException
      Throws:
      XAContextException
    • unregister

      public void unregister(int id, boolean rollbackOnly) throws XAContextException
      Throws:
      XAContextException
    • prepare

      public void prepare() throws XAContextException
      Throws:
      XAContextException
    • commit

      public long commit(boolean onePhase) throws XAContextException
      Throws:
      XAContextException
    • rollback

      public void rollback() throws XAContextException
      Throws:
      XAContextException
    • close

      public void close()
    • toString

      public String toString()
      Overrides:
      toString in class Object