프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 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 |