ec_message_set_next_attempt
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.
- closure
-
A pointer to the closure function.
- msg
-
An
ec_messagestruct. For documentation of this data structure see “ec_message” - now
-
A
timevalstruct. - rv
-
A pointer to an
int. If the provider function sets the expiration time, then set*rvto1indicating success or0indicating failure.
If you set the expiration time, then your provider function should return 1. Otherwise, return 0 (and you will get the default behavior).
This hook will be called in the Scheduler thread.