Property | Type | Description | |
---|---|---|---|
$error | string | ||
$messageId | string | ||
$needRetry | boolean | ||
$topic | string |
Method | Description | |
---|---|---|
__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 |
Method | Description | |
---|---|---|
logResponse ( ) | Log the response | |
parseResponse ( $responseInJson ) | parse the response |
Method | Description | |
---|---|---|
parseError ( $responseInJson ) | ||
parseSuccess ( $responseInJson ) |
public __construct ( |
||
$response | ||
$topic |
protected parseResponse ( $responseInJson ) | ||
$responseInJson |
public shouldRetry ( ) : boolean | ||
return | boolean |