Class TransactionController


  • public class TransactionController
    extends java.lang.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 Detail

      • TransactionController

        protected TransactionController​(Session mySession)
    • Method Detail

      • 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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object