ec_message_set_next_attempt — Determines and sets the next attempt time for the message
int **ec_message_set_next_attempt** ( | mess, | |
| | now
); | |
Determines and sets the next attempt time for the message.
A pointer to an ec_message struct. For documentation of this data structure see “ec_message”.
A pointer to a timeval struct.
This function returns 1 on success. It will return 0 if the message has expired (see message_expiration) or exceeded the max number of retries (see max_retries). It will also return 0 if the never_retry option was set to true.
It is legal to call this function in any thread.