public function __construct($cache_key)
public function __construct($cache_key)
Parameters
$cache_key |
Return
this | //Implicit.// |
public function getIsHealthy()
public function getIsHealthy()
Is the database currently healthy?
Return
wild |
public function getShouldCheck()
public function getShouldCheck()
Should this request check database health?
Return
wild |
public function getUpEventCount()
public function getUpEventCount()
How many recent health checks were successful?
Return
wild |
public function getDownEventCount()
public function getDownEventCount()
How many recent health checks failed?
Return
wild |
public function getRequiredEventCount()
public function getRequiredEventCount()
Number of failures or successes we need to see in a row before we change the state.
Return
wild |
public function getHealthCheckFrequency()
public function getHealthCheckFrequency()
Seconds to wait between health checks.
Return
wild |
public function didHealthCheck($result)
public function didHealthCheck($result)
Parameters
$result |
Return
wild |
private function readState()
private function readState()
Return
wild |
private function updateStatistics($record)
private function updateStatistics($record)
Parameters
array | $record |
Return
wild |
public function getCacheKey()
public function getCacheKey()
Return
wild |
private function readHealthRecord()
private function readHealthRecord()
Return
wild |
private function writeHealthRecord($record)
private function writeHealthRecord($record)
Parameters
array | $record |
Return
wild |