Property | Type | Description | |
---|---|---|---|
$connectionPool | mixed[] | ||
$heartbeatOffset | float | ||
$keepaliveOffset | float | ||
$now | callable |
Method | Description | |
---|---|---|
__construct ( float $offset = 3600000, $heartbeat = 200 ) | ||
__destruct ( ) | ||
erase ( ) | ||
existsConnection ( string $id ) : boolean | ||
getConnected ( ) : string[] | ||
getConnection ( string $id ) : |
||
getData ( string $id ) : mixed[] | ||
getNow ( ) : float | ||
isHeartbeatNeeded ( string $id ) : boolean | ||
registerHeartbeat ( $id ) : boolean | ||
removeConnection ( string $id ) : boolean | ||
removeInvalid ( ) : string[] | ||
resetNow ( ) | ||
setConnection ( |
||
setConnectionProperty ( string $id, string $property, mixed $value ) | ||
setNow ( callable $callback ) | ||
validateConnection ( string $id ) : boolean |
Method | Description | |
---|---|---|
generateValidationConst ( ) : mixed[] | ||
register ( |
||
validateIn ( mixed[] $const, mixed[] $data ) : boolean | ||
validateOut ( mixed[] $const, mixed[] $data ) : boolean |
public __construct ( float $offset = 3600000, $heartbeat = 200 ) | ||
$offset | float |
public existsConnection ( string $id ) : boolean | ||
$id | string | |
return | boolean |
protected generateValidationConst ( ) : mixed[] | ||
return | mixed[] |
public getConnection ( string $id ) : |
||
$id | string | |
return |
public isHeartbeatNeeded ( string $id ) : boolean | ||
$id | string | |
return | boolean |
public removeConnection ( string $id ) : boolean | ||
$id | string | |
return | boolean |
public setConnection ( |
||
$conn | ||
return | boolean |
public validateConnection ( string $id ) : boolean | ||
$id | string | |
return | boolean |
protected validateIn ( mixed[] $const, mixed[] $data ) : boolean | ||
$const | mixed[] | |
$data | mixed[] | |
return | boolean |
protected validateOut ( mixed[] $const, mixed[] $data ) : boolean | ||
$const | mixed[] | |
$data | mixed[] | |
return | boolean |