For compliance with the new version of the table interface policy (T255803). This patch was created by an automated search & replace operation on the includes/ directory. Bug: T257789 Change-Id: I17e5e92e24c708ffc846945a136347670a3a20c7
40 lines
829 B
PHP
40 lines
829 B
PHP
<?php
|
|
|
|
namespace Wikimedia\Rdbms;
|
|
|
|
use Serializable;
|
|
|
|
/**
|
|
* An object representing a master or replica DB position in a replicated setup.
|
|
*
|
|
* The implementation details of this opaque type are up to the database subclass.
|
|
*
|
|
* @stable to implement
|
|
*/
|
|
interface DBMasterPos extends Serializable {
|
|
/**
|
|
* @return float UNIX timestamp
|
|
* @since 1.25
|
|
*/
|
|
public function asOfTime();
|
|
|
|
/**
|
|
* @param DBMasterPos $pos
|
|
* @return bool Whether this position is at or higher than $pos
|
|
* @since 1.27
|
|
*/
|
|
public function hasReached( DBMasterPos $pos );
|
|
|
|
/**
|
|
* @param DBMasterPos $pos
|
|
* @return bool Whether this position appears to be for the same channel as another
|
|
* @since 1.27
|
|
*/
|
|
public function channelsMatch( DBMasterPos $pos );
|
|
|
|
/**
|
|
* @return string
|
|
* @since 1.27
|
|
*/
|
|
public function __toString();
|
|
}
|