Свойство | Тип | Описание | |
---|---|---|---|
$connectionPool | mixed[] | ||
$heartbeatOffset | float | ||
$keepaliveOffset | float | ||
$now | callable |
Метод | Описание | |
---|---|---|
__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 |
Метод | Описание | |
---|---|---|
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 | |
Результат | boolean |
public getConnection ( string $id ) : mixed[] | ||
$id | string | |
Результат | mixed[] |
public isHeartbeatNeeded ( string $id ) : boolean | ||
$id | string | |
Результат | boolean |
public registerHeartbeat ( $id ) : boolean | ||
$id | ||
Результат | boolean |
public removeConnection ( string $id ) : boolean | ||
$id | string | |
Результат | boolean |
public setConnection ( string $id ) : boolean | ||
$id | string | |
Результат | boolean |
public validateConnection ( string $id ) : boolean | ||
$id | string | |
Результат | boolean |
protected validateIn ( mixed[] $const, mixed[] $data ) : boolean | ||
$const | mixed[] | |
$data | mixed[] | |
Результат | boolean |
protected validateOut ( mixed[] $const, mixed[] $data ) : boolean | ||
$const | mixed[] | |
$data | mixed[] | |
Результат | boolean |