ec_message_set_next_attempt
Last updated March 2020
Name
ec_message_set_next_attempt — Determines and sets the next attempt time for the message
Synopsis
#include "ec_message.h"
| int **ec_message_set_next_attempt** (
| mess, | |
| | now)
; | |
Description
Determines and sets the next attempt time for the message.
- mess
-
A pointer to an ec_message struct. For documentation of this data structure see “ec_message”.
- now
-
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.
Was this page helpful?