public function __get($name)Inherited
public function __get($name)
Inherited
Parameters
$name |
Return
wild |
public function __set($name, $value)Inherited
public function __set($name, $value)
Inherited
Parameters
$name | ||
$value |
Return
wild |
public function current()Inherited
public function current()
Inherited
Return
wild |
public function key()Inherited
public function key()
Inherited
Return
wild |
public function next()Inherited
public function next()
Inherited
Return
wild |
public function rewind()Inherited
public function rewind()
Inherited
Return
wild |
public function valid()Inherited
public function valid()
Inherited
Return
wild |
private function throwOnAttemptedIteration()Inherited
private function throwOnAttemptedIteration()
Inherited
Return
wild |
public function getPhobjectClassConstant($key, $byte_limit)Inherited
public function getPhobjectClassConstant($key, $byte_limit)
Inherited
Phobject
Read the value of a class constant.
This is the same as just typing self::CONSTANTNAME, but throws a more useful message if the constant is not defined and allows the constant to be limited to a maximum length.
Parameters
string | $key | Name of the constant. |
int|null | $byte_limit | Maximum number of bytes permitted in the value. |
Return
string | Value of the constant. |
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 |