2019-05-21 21:52:57 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Deferrable update that specifies whether it must run outside of any explicit
|
|
|
|
|
* LBFactory transaction round or must run inside of a round owned by doUpdate().
|
|
|
|
|
*
|
|
|
|
|
* @since 1.34
|
|
|
|
|
*/
|
|
|
|
|
interface TransactionRoundAwareUpdate {
|
2019-03-19 16:03:36 +00:00
|
|
|
/** @var int No explicit transaction round should be used */
|
2019-05-21 21:52:57 +00:00
|
|
|
const TRX_ROUND_ABSENT = 1;
|
2019-03-19 16:03:36 +00:00
|
|
|
/** @var int An explicit transaction round owned by self::doUpdate should be used */
|
2019-05-21 21:52:57 +00:00
|
|
|
const TRX_ROUND_PRESENT = 2;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return int One of the class TRX_ROUND_* constants
|
|
|
|
|
*/
|
|
|
|
|
public function getTransactionRoundRequirement();
|
|
|
|
|
}
|