Skip to main content

ec_message_set_next_attempt

Last updated March 2020

Name

ec_message_set_next_attempt — Allows modules to set the next attempt time of a message

Synopsis

#include "hooks/core/ec_message_set_next_attempt.h"

| int **core_ec_message_set_next_attempt** ( | closure, |   | |   | msg, |   | |   | now, |   | |   | rv); |   |

void * <var class="pdparam">closure</var>; ec_message * <var class="pdparam">msg</var>; struct timeval * <var class="pdparam">now</var>; int * <var class="pdparam">rv</var>;

Description

Allows modules to set the next attempt time of a message.

Parameters

closure

A pointer to the closure function.

msg

An ec_message struct. For documentation of this data structure see “ec_message”

now

A timeval struct.

rv

A pointer to an int. If the provider function sets the expiration time, then set *rv to 1 indicating success or 0 indicating failure.

Return Values

If you set the expiration time, then your provider function should return 1. Otherwise, return 0 (and you will get the default behavior).

Threading

This hook will be called in the Scheduler thread.

Was this page helpful?