Method |
Description |
|
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. |
|