Skip to content

ReplicationInterface

  • Full name: \Zemit\Mvc\Model\Interfaces\ReplicationInterface

Methods

getReplicationLag

public static getReplicationLag(): ?int
  • This method is static.

setReplicationLag

public static setReplicationLag(?int $replicationLag = null): void
  • This method is static.

Parameters:

Parameter Type Description
$replicationLag ?int

getReplicationReadyAt

public static getReplicationReadyAt(): ?int
  • This method is static.

setReplicationReadyAt

public static setReplicationReadyAt(?int $replicationReadyAt = null): void
  • This method is static.

Parameters:

Parameter Type Description
$replicationReadyAt ?int

initializeReplication

public initializeReplication(?array $options = null): void

Parameters:

Parameter Type Description
$options ?array

selectReadConnection

public selectReadConnection(): \Phalcon\Db\Adapter\AdapterInterface

addReadWriteConnectionBehavior

public addReadWriteConnectionBehavior(): void

isReplicationReady

public isReplicationReady(): bool