Package com.swiftmq.amqp.v100.client
Class TransactionController
java.lang.Object
com.swiftmq.amqp.v100.client.TransactionController
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
close()
void
Commits a transaction.Creates a new transaction id.boolean
Returns whether the attached server-side transactional resource supports distributed transactions.boolean
Returns whether the attached server-side transactional resource supports local transactions.boolean
Returns whether the attached server-side transactional resource supports multiple sessions per transaction.boolean
Returns whether the attached server-side transactional resource supports multiple transactions per session.boolean
Returns whether the attached server-side transactional resource supports promotable transactions.void
Rolls back a transaction.toString()
-
Constructor Details
-
TransactionController
-
-
Method Details
-
createTxnId
Creates a new transaction id.- Returns:
- transaction id
- Throws:
AMQPException
- on error
-
commit
Commits a transaction.- Parameters:
txnId
- transaction id.- Throws:
AMQPException
- on error
-
rollback
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
-