Interface TransactionManager


public interface TransactionManager
Interface with methods to perform storage transaction related operations.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    commitTransaction(String transactionId)
    Commit the transaction identified by the given transaction id.
    This returns the list of active transaction in a disconnected manner, to isolate the internal transaction list from outside influences.
    boolean
    Remove the active transaction identified by the given transaction id.
    void
    rollbackTransaction(String transactionId)
    Rollback transaction identified by the given transaction id.
    void
    startTransaction(String transactionId)
    Start a transaction with the given transaction id.
    void
    timeoutTransaction(String transactionId)
    Rollback the time-out transaction identified by the given transaction id.
  • Method Details

    • startTransaction

      void startTransaction(String transactionId) throws com.tridion.broker.StorageException
      Start a transaction with the given transaction id.
      Parameters:
      transactionId - The given transaction id.
      Throws:
      com.tridion.broker.StorageException
    • commitTransaction

      void commitTransaction(String transactionId) throws com.tridion.broker.StorageException
      Commit the transaction identified by the given transaction id.
      Parameters:
      transactionId - The given transaction id.
      Throws:
      com.tridion.broker.StorageException
    • timeoutTransaction

      void timeoutTransaction(String transactionId) throws com.tridion.broker.StorageException
      Rollback the time-out transaction identified by the given transaction id.
      Parameters:
      transactionId - The given transaction id.
      Throws:
      com.tridion.broker.StorageException
    • rollbackTransaction

      void rollbackTransaction(String transactionId)
      Rollback transaction identified by the given transaction id.
      Parameters:
      transactionId - The given transaction id.
    • removeActiveTransaction

      boolean removeActiveTransaction(String transactionId)
      Remove the active transaction identified by the given transaction id.
      Parameters:
      transactionId - The given transaction id.
      Returns:
      true if the transaction was successfully removed, false otherwise.
    • getActiveTransactions

      Map<String,Long> getActiveTransactions()
      This returns the list of active transaction in a disconnected manner, to isolate the internal transaction list from outside influences.
      Returns:
      The Map containing active transactions