Interface Transactional

All Known Subinterfaces:
TransactionalConnection, XATransactionalConnection

@MinMuleVersion("4.4.0") public interface Transactional
Base contract for a component which can participate in a transaction
Since:
1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Begins the transaction
    void
    Commits the transaction
    void
    Rolls the transaction back
  • Method Details

    • begin

      void begin() throws org.mule.runtime.api.tx.TransactionException
      Begins the transaction
      Throws:
      org.mule.runtime.api.tx.TransactionException - if the transaction fails to begin
    • commit

      void commit() throws org.mule.runtime.api.tx.TransactionException
      Commits the transaction
      Throws:
      org.mule.runtime.api.tx.TransactionException - if the transaction fails to commit
    • rollback

      void rollback() throws org.mule.runtime.api.tx.TransactionException
      Rolls the transaction back
      Throws:
      org.mule.runtime.api.tx.TransactionException - if the transaction fails to roll back