Class TransactionController

java.lang.Object
com.swiftmq.amqp.v100.client.TransactionController

public class TransactionController extends Object

A transaction controller controls transactions of a session.

It communicates withe the transactional resources of the remote server.

Author:
IIT Software GmbH, Bremen/Germany, (c) 2011, All Rights Reserved
  • Constructor Details

    • TransactionController

      protected TransactionController(Session mySession)
  • Method Details

    • createTxnId

      public TxnIdIF createTxnId() throws AMQPException
      Creates a new transaction id.
      Returns:
      transaction id
      Throws:
      AMQPException - on error
    • commit

      public void commit(TxnIdIF txnId) throws AMQPException
      Commits a transaction.
      Parameters:
      txnId - transaction id.
      Throws:
      AMQPException - on error
    • rollback

      public void rollback(TxnIdIF txnId) throws AMQPException
      Rolls back a transaction.
      Parameters:
      txnId - transaction id.
      Throws:
      AMQPException - on error
    • isSupportLocalTransactions

      public boolean isSupportLocalTransactions()
      Returns whether the attached server-side transactional resource supports local transactions.
      Returns:
      true/false
    • isSupportDistributedTransactions

      public boolean isSupportDistributedTransactions()
      Returns whether the attached server-side transactional resource supports distributed transactions.
      Returns:
      true/false
    • isSupportPromotableTransactions

      public boolean isSupportPromotableTransactions()
      Returns whether the attached server-side transactional resource supports promotable transactions.
      Returns:
      true/false
    • isSupportMultiTxnsPerSsn

      public boolean isSupportMultiTxnsPerSsn()
      Returns whether the attached server-side transactional resource supports multiple transactions per session.
      Returns:
      true/false
    • isSupportMultiSsnsPerTxn

      public boolean isSupportMultiSsnsPerTxn()
      Returns whether the attached server-side transactional resource supports multiple sessions per transaction.
      Returns:
      true/false
    • close

      protected void close()
    • toString

      public String toString()
      Overrides:
      toString in class Object