Per the Stable Interface Policy, PHP interfaces should not be directly implemented by extensions, unless they are marked to be safe for that purpose. Bug: T247862 Change-Id: Idd5783b70fc00c03d57f5b1a887f0e47c4d7b146
21 lines
608 B
PHP
21 lines
608 B
PHP
<?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().
|
|
*
|
|
* @stable for implementation
|
|
*
|
|
* @since 1.34
|
|
*/
|
|
interface TransactionRoundAwareUpdate {
|
|
/** @var int No explicit transaction round should be used */
|
|
public const TRX_ROUND_ABSENT = 1;
|
|
/** @var int An explicit transaction round owned by self::doUpdate should be used */
|
|
public const TRX_ROUND_PRESENT = 2;
|
|
|
|
/**
|
|
* @return int One of the class TRX_ROUND_* constants
|
|
*/
|
|
public function getTransactionRoundRequirement();
|
|
}
|