SObjectizer-5 Extra
|
Namespaces | |
details | |
errors | |
impl | |
Classes | |
class | delivery_id_t |
The ID of revocable message/signal. More... | |
Functions | |
template<typename Message , typename Target , typename... Args> | |
SO_5_NODISCARD delivery_id_t | send (Target &&to, Args &&... args) |
A utility function for creating and delivering a revocable message. More... | |
template<typename Message , typename Target > | |
SO_5_NODISCARD std::enable_if< !::so_5::is_signal< Message >::value, delivery_id_t >::type | send (Target &&to, mhood_t< Message > cmd) |
A helper function for redirection of an existing message as a revocable one. More... | |
template<typename Message , typename Target > | |
SO_5_NODISCARD std::enable_if< ::so_5::is_signal< Message >::value, delivery_id_t >::type | send (Target &&to, mhood_t< Message >) |
A helper function for redirection of an existing signal as a revocable one. More... | |
SO_5_NODISCARD delivery_id_t so_5::extra::revocable_msg::send | ( | Target && | to, |
Args &&... | args | ||
) |
A utility function for creating and delivering a revocable message.
This function can be used for sending messages and signals to mboxes and mchains, and to the direct mboxes of agents and ad-hoc agents.
Message/signal sent can be revoked by using delivery_id_t::revoke() method:
Please note that revoked message is not removed from queues where it wait for processing. But revoked message/signal will be ignored just after extraction from a queue.
Usage examples:
to | Target for the message. Can be a reference to mbox, mchain, agent or ad-hod agent. |
args | Message constructor parameters. |
SO_5_NODISCARD std::enable_if< !::so_5::is_signal< Message >::value, delivery_id_t >::type so_5::extra::revocable_msg::send | ( | Target && | to, |
mhood_t< Message > | cmd | ||
) |
A helper function for redirection of an existing message as a revocable one.
Usage example:
to | Target for the message. Can be a reference to mbox, mchain, agent or ad-hod agent. |
cmd | Message to be delivered. |
SO_5_NODISCARD std::enable_if< ::so_5::is_signal< Message >::value, delivery_id_t >::type so_5::extra::revocable_msg::send | ( | Target && | to, |
mhood_t< Message > | |||
) |
A helper function for redirection of an existing signal as a revocable one.
This function can be useful in template classes where it is unknown is template parameter message of signal.
Usage example:
to | Target for the message. Can be a reference to mbox, mchain, agent or ad-hod agent. |