* - perfLogger: PSR-3 logger instance. [optional]
* - errorLogger: Callback that takes an Exception and logs it. [optional]
* - deprecationLogger: Callback to log a deprecation warning. [optional]
+ * - secret: Secret string to use for HMAC hashing [optional]
* @throws InvalidArgumentException
*/
public function __construct( array $conf );
/**
* Get cached (tracked) load balancers for all main database clusters
*
- * @return LoadBalancer[] Map of (cluster name => LoadBalancer)
+ * @return ILoadBalancer[] Map of (cluster name => ILoadBalancer)
* @since 1.29
*/
public function getAllMainLBs();
/**
* Get cached (tracked) load balancers for all external database clusters
*
- * @return LoadBalancer[] Map of (cluster name => LoadBalancer)
+ * @return ILoadBalancer[] Map of (cluster name => ILoadBalancer)
* @since 1.29
*/
public function getAllExternalLBs();
/**
* Commit all replica DB transactions so as to flush any REPEATABLE-READ or SSI snapshot
*
+ * This is useful for getting rid of stale data from an implicit transaction round
+ *
* @param string $fname Caller name
*/
public function flushReplicaSnapshots( $fname = __METHOD__ );
*/
public function appendShutdownCPIndexAsQuery( $url, $index );
+ /**
+ * Get the client ID of the ChronologyProtector instance
+ *
+ * @return string Client ID
+ * @since 1.34
+ */
+ public function getChronologyProtectorClientId();
+
/**
* @param array $info Map of fields, including:
* - IPAddress : IP address
* the aliases can be removed, and then the old X-named indexes dropped.
*
* @param string[] $aliases
- * @return mixed
* @since 1.31
*/
public function setIndexAliases( array $aliases );