PHP 트레잇 Kraken\Channel\Record\ResponseRecordStorage

파일 보기 프로젝트 열기: kraken-php/framework

보호된 프로퍼티들

프로퍼티 타입 설명
$handledReps ResponseRecord[]
$handledRepsTimeout integer
$reps ResponseRecord[]

보호된 메소드들

메소드 설명
addResponse ( string $pid, ResponseRecord $response ) Add new ResponseRecord to storage.
createResponse ( string $pid, string $alias, float $timeout, float $timeoutIncrease = 1 ) : ResponseRecord Create ResponseRecord.
existsResponse ( $pid ) : boolean Check if ResponseRecord with given protocol ID exists.
expireResponses ( ) Expire unhandled ResponseRecords.
getResponse ( string $pid ) : ResponseRecord Return ResponseRecord if it exists or null if it does not exist.
resolveOrRejectResponse ( string $pid, $exception ) Mark ResponseRecord as handled if it exists that and has protocol ID equal to $pid.
unfinishedResponses ( ) : ResponseRecord[] Return all unhandled ResponseRecords in array form.

메소드 상세

addResponse() 보호된 메소드

Add new ResponseRecord to storage.
protected addResponse ( string $pid, ResponseRecord $response )
$pid string
$response ResponseRecord

createResponse() 보호된 메소드

Create ResponseRecord.
protected createResponse ( string $pid, string $alias, float $timeout, float $timeoutIncrease = 1 ) : ResponseRecord
$pid string
$alias string
$timeout float
$timeoutIncrease float
리턴 ResponseRecord

existsResponse() 보호된 메소드

Check if ResponseRecord with given protocol ID exists.
protected existsResponse ( $pid ) : boolean
$pid
리턴 boolean

expireResponses() 보호된 메소드

Expire unhandled ResponseRecords.
protected expireResponses ( )

getResponse() 보호된 메소드

Return ResponseRecord if it exists or null if it does not exist.
protected getResponse ( string $pid ) : ResponseRecord
$pid string
리턴 ResponseRecord

resolveOrRejectResponse() 보호된 메소드

Mark ResponseRecord as handled if it exists that and has protocol ID equal to $pid.
protected resolveOrRejectResponse ( string $pid, $exception )
$pid string
$exception

unfinishedResponses() 보호된 메소드

Return all unhandled ResponseRecords in array form.
protected unfinishedResponses ( ) : ResponseRecord[]
리턴 ResponseRecord[]

프로퍼티 상세

$handledReps 보호되어 있는 프로퍼티

protected ResponseRecord[],Kraken\Channel\Record $handledReps
리턴 ResponseRecord[]

$handledRepsTimeout 보호되어 있는 프로퍼티

protected int $handledRepsTimeout
리턴 integer

$reps 보호되어 있는 프로퍼티

protected ResponseRecord[],Kraken\Channel\Record $reps
리턴 ResponseRecord[]