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 ) : mixed[] | ||
getNow ( ) : float | ||
isHeartbeatNeeded ( string $id ) : boolean | ||
registerHeartbeat ( $id ) : boolean | ||
removeConnection ( string $id ) : boolean | ||
removeInvalid ( ) : string[] | ||
resetNow ( ) | ||
setConnection ( string $id ) : boolean | ||
setConnectionProperty ( string $id, string $property, mixed $value ) | ||
setNow ( callable $callback ) | ||
validateConnection ( string $id ) : boolean |
Method | Description | |
---|---|---|
generateConst ( ) : mixed[] | ||
register ( array $current = [] ) : mixed[] | ||
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 |
public getConnection ( string $id ) : mixed[] | ||
$id | string | |
return | mixed[] |
public isHeartbeatNeeded ( string $id ) : boolean | ||
$id | string | |
return | boolean |
public removeConnection ( string $id ) : boolean | ||
$id | string | |
return | boolean |
public setConnection ( string $id ) : boolean | ||
$id | string | |
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 |