Свойство | Тип | Описание | |
---|---|---|---|
$error | string | ||
$messageId | string | ||
$needRetry | boolean | ||
$topic | string |
Метод | Описание | |
---|---|---|
__construct ( |
TopicResponse constructor. | |
error ( ) : string | return error message you should test if it's necessary to resent it | |
isSuccess ( ) : boolean | true if topic sent with success | |
shouldRetry ( ) : boolean | return true if it's necessary resent it using exponential backoff |
Метод | Описание | |
---|---|---|
logResponse ( ) | Log the response | |
parseResponse ( $responseInJson ) | parse the response |
Метод | Описание | |
---|---|---|
parseError ( $responseInJson ) | ||
parseSuccess ( $responseInJson ) |
public __construct ( |
||
$response | ||
$topic |
protected parseResponse ( $responseInJson ) | ||
$responseInJson |
public shouldRetry ( ) : boolean | ||
Результат | boolean |