wiki.techinc.nl/includes/libs/rdbms/database/position/DBMasterPos.php
Aaron Schulz 864eab03e7 Move DBMasterPos to Rdbms namespace
Updated all callers

Change-Id: Iacd5d6f7f18d8b23df24637cda61592112490eb0
2017-02-10 02:38:56 -08:00

36 lines
762 B
PHP

<?php
namespace Wikimedia\Rdbms;
/**
* 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.
*/
interface DBMasterPos {
/**
* @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();
}