PHP 트레잇 Kraken\Channel\Record\RequestRecordStorage

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

보호된 프로퍼티들

프로퍼티 타입 설명
$reqs RequestRecord[]

보호된 메소드들

메소드 설명
addRequest ( string $pid, RequestRecord $request ) Add new RequestRecord to storage.
cancelRequest ( string $pid, Erro\Error | Exceptio\Exception | ThrowableProxy $ex ) Cancel RequestRecord if it exists that has protocol ID equal to $pid.
createRequest ( string $pid, callable $success = null, callable $failure = null, callable $cancel = null, float $timeout ) : RequestRecord Create RequestRecord.
existsRequest ( string $pid ) : boolean Check if RequestRecord with given protocol ID exists.
expireRequests ( ) Cancel overdue Requests.
getRequest ( string $pid ) : RequestRecord | null Return RequestRecord if it exists or null if it does not exist.
rejectRequest ( string $pid, Erro\Error | Exceptio\Exception | ThrowableProxy $ex ) Reject RequestRecord if it exists that has protocol ID equal to $pid.
resolveRequest ( string $pid, string $message ) Resolve RequestRecord if it exists that has protocol ID equal to $pid.

메소드 상세

addRequest() 보호된 메소드

Add new RequestRecord to storage.
protected addRequest ( string $pid, RequestRecord $request )
$pid string
$request RequestRecord

cancelRequest() 보호된 메소드

Cancel RequestRecord if it exists that has protocol ID equal to $pid.
protected cancelRequest ( string $pid, Erro\Error | Exceptio\Exception | ThrowableProxy $ex )
$pid string
$ex Erro\Error | Exceptio\Exception | Kraken\Throwable\ThrowableProxy

createRequest() 보호된 메소드

Create RequestRecord.
protected createRequest ( string $pid, callable $success = null, callable $failure = null, callable $cancel = null, float $timeout ) : RequestRecord
$pid string
$success callable
$failure callable
$cancel callable
$timeout float
리턴 RequestRecord

existsRequest() 보호된 메소드

Check if RequestRecord with given protocol ID exists.
protected existsRequest ( string $pid ) : boolean
$pid string
리턴 boolean

expireRequests() 보호된 메소드

Cancel overdue Requests.
protected expireRequests ( )

getRequest() 보호된 메소드

Return RequestRecord if it exists or null if it does not exist.
protected getRequest ( string $pid ) : RequestRecord | null
$pid string
리턴 RequestRecord | null

rejectRequest() 보호된 메소드

Reject RequestRecord if it exists that has protocol ID equal to $pid.
protected rejectRequest ( string $pid, Erro\Error | Exceptio\Exception | ThrowableProxy $ex )
$pid string
$ex Erro\Error | Exceptio\Exception | Kraken\Throwable\ThrowableProxy

resolveRequest() 보호된 메소드

Resolve RequestRecord if it exists that has protocol ID equal to $pid.
protected resolveRequest ( string $pid, string $message )
$pid string
$message string

프로퍼티 상세

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

protected RequestRecord[],Kraken\Channel\Record $reqs
리턴 RequestRecord[]