Skip to main content

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); |   |

ec_message * <var class="pdparam">mess</var>; struct timeval * <var class="pdparam">now</var>;

Description

Determines and sets the next attempt time for the message.

Parameters

mess

A pointer to an ec_message struct. For documentation of this data structure see “ec_message”.

now

A pointer to a timeval struct.

Return Values

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.

Threading

It is legal to call this function in any thread.

Was this page helpful?