Package com.tridion.storage.management
Interface TransactionManager
public interface TransactionManager
Interface with methods to perform storage transaction related operations.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcommitTransaction(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.booleanremoveActiveTransaction(String transactionId) Remove the active transaction identified by the given transaction id.voidrollbackTransaction(String transactionId) Rollback transaction identified by the given transaction id.voidstartTransaction(String transactionId) Start a transaction with the given transaction id.voidtimeoutTransaction(String transactionId) Rollback the time-out transaction identified by the given transaction id.
-
Method Details
-
startTransaction
Start a transaction with the given transaction id.- Parameters:
transactionId- The given transaction id.- Throws:
com.tridion.broker.StorageException
-
commitTransaction
Commit the transaction identified by the given transaction id.- Parameters:
transactionId- The given transaction id.- Throws:
com.tridion.broker.StorageException
-
timeoutTransaction
Rollback the time-out transaction identified by the given transaction id.- Parameters:
transactionId- The given transaction id.- Throws:
com.tridion.broker.StorageException
-
rollbackTransaction
Rollback transaction identified by the given transaction id.- Parameters:
transactionId- The given transaction id.
-
removeActiveTransaction
Remove the active transaction identified by the given transaction id.- Parameters:
transactionId- The given transaction id.- Returns:
trueif the transaction was successfully removed,falseotherwise.
-
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
-