Property | Type | Description | |
---|---|---|---|
$error | string | ||
$messageId | string | ||
$needRetry | boolean | ||
$topic | string |
Method | Description | |
---|---|---|
error ( ) : string | return error message you should test if it's necessary to resent it | |
isSuccess ( ) : boolean | true if topic sent with success | |
setError ( $error ) | set error | |
setSuccess ( $messageId ) | if success set a message id | |
shouldRetry ( ) : boolean | return true if it's necessary resent it using exponential backoff |
public shouldRetry ( ) : boolean | ||
return | boolean |