Provides a fluent interface for sending asynchronous messages to actors at a specific point in time.
More...
|
|
| event_based_scheduled_mail_t (abstract_scheduled_actor *self, message &&content, actor_clock::time_point timeout) |
| |
| template<class Handle , class RefTag = strong_ref_t, class SelfRefTag = strong_self_ref_t> |
| auto | request (const Handle &receiver, timespan relative_timeout, RefTag ref_tag={}, SelfRefTag self_ref_tag={}) && |
| | Sends the message to receiver as a request message and returns a handle for processing the response.
|
| |
|
| async_scheduled_mail_t (local_actor *self, message &&content, actor_clock::time_point timeout) |
| |
|
| async_scheduled_mail_t (const async_scheduled_mail_t &)=delete |
| |
|
async_scheduled_mail_t & | operator= (const async_scheduled_mail_t &)=delete |
| |
| disposable | send (const Handle &receiver, RefTag ref_tag={}, SelfRefTag self_ref_tag={}) && |
| | Sends the message to receiver.
|
| |
| auto | delegate (const Handle &receiver, RefTag ref_tag={}, SelfRefTag self_ref_tag={}) && |
| | Sends the message to receiver, using the message ID and sender from the currently processed message.
|
| |
template<message_priority Priority, class Trait, class... Args>
class caf::event_based_scheduled_mail_t< Priority, Trait, Args >
Provides a fluent interface for sending asynchronous messages to actors at a specific point in time.
template<message_priority Priority, class Trait , class... Args>
template<class Handle , class RefTag = strong_ref_t, class SelfRefTag = strong_self_ref_t>
Sends the message to receiver as a request message and returns a handle for processing the response.
- Parameters
-
| receiver | The actor that should receive the message. |
| relative_timeout | The maximum time to wait for a response. |
| ref_tag | Either strong_ref or weak_ref. When passing strong_ref, the system will keep a strong reference to the receiver until the message has been delivered. Otherwise, the system will only keep a weak reference to the receiver and the message will be dropped if the receiver has been garbage collected in the meantime. |
| self_ref_tag | Either strong_self_ref or weak_self_ref. When passing strong_self_ref, the system will keep a strong reference to the sender until the message has been delivered. Otherwise, the system will only keep a weak reference to the sender and the message will be dropped if the sender has been garbage collected in the meantime. |