GNU GPL v2+
- Since
- 3.1
- Author
- mwjames
◆ __construct()
SMW\MediaWiki\Connection\TransactionHandler::__construct |
( |
|
$loadBalancerFactory | ) |
|
- Since
- 3.1
- Parameters
-
ILBFactory | LBFactory | $loadBalancerFactory | |
◆ commitAndWaitForReplication()
SMW\MediaWiki\Connection\TransactionHandler::commitAndWaitForReplication |
( |
|
$fname, |
|
|
|
$ticket, |
|
|
array |
$opts = [] |
|
) |
| |
Convenience method for safely running commitMasterChanges/waitForReplication where it will allow to commit and wait for when a TransactionTicket is available.
- Note
- Only supported with 1.28+
- Since
- 3.1
- Parameters
-
◆ detachSectionTransaction()
SMW\MediaWiki\Connection\TransactionHandler::detachSectionTransaction |
( |
|
$fname = __METHOD__ | ) |
|
◆ getEmptyTransactionTicket()
SMW\MediaWiki\Connection\TransactionHandler::getEmptyTransactionTicket |
( |
|
$fname = __METHOD__ | ) |
|
- Note
- Only supported with 1.28+
- Since
- 3.1
- Parameters
-
string | $fname | Caller name (e.g. METHOD) |
- Returns
- mixed A value to pass to commitAndWaitForReplication
◆ hasActiveSectionTransaction()
SMW\MediaWiki\Connection\TransactionHandler::hasActiveSectionTransaction |
( |
| ) |
|
◆ inSectionTransaction()
SMW\MediaWiki\Connection\TransactionHandler::inSectionTransaction |
( |
|
$fname = __METHOD__ | ) |
|
- Since
- 3.1
- Parameters
-
- Returns
- boolean
◆ markSectionTransaction()
SMW\MediaWiki\Connection\TransactionHandler::markSectionTransaction |
( |
|
$fname = __METHOD__ | ) |
|
Register a section
as transaction
The intent is to make it possible to mark a section and disable any other atomic transaction request while being part of a section hereby allowing to bundle all requests and encapsulate them into one coherent atomic transaction without changing pending callers that may require individual atomic transactions when they are not part of a section request.
Only one active a section transaction is allowed at a time otherwise an Exception
is thrown.
- Since
- 3.1
- Parameters
-
- Exceptions
-
◆ muteTransactionProfiler()
SMW\MediaWiki\Connection\TransactionHandler::muteTransactionProfiler |
( |
|
$mute | ) |
|
◆ setTransactionProfiler()
SMW\MediaWiki\Connection\TransactionHandler::setTransactionProfiler |
( |
|
$transactionProfiler | ) |
|
- Since
- 3.1
- Parameters
-
TransactionProfiler | $transactionProfiler | |
The documentation for this class was generated from the following file: