C++ Actor Framework 1.0.0
Loading...
Searching...
No Matches
caf::blocking_mail_t< Priority, Trait, Args > Class Template Reference

Provides a fluent interface for sending asynchronous messages to actors. More...

#include <blocking_mail.hpp>

Inheritance diagram for caf::blocking_mail_t< Priority, Trait, Args >:
caf::async_mail_base_t< Priority, Trait, Args... >

Public Types

using super = async_mail_base_t<Priority, Trait, Args...>
 

Public Member Functions

 blocking_mail_t (abstract_blocking_actor *self, message &&content)
 
template<message_priority P = Priority, class E = std::enable_if_t<P == message_priority::normal>>
auto urgent () &&
 Tags the message as urgent, i.e., sends it with high priority.
 
auto schedule (actor_clock::time_point timeout) &&
 Schedules the message for delivery with an absolute timeout.
 
auto delay (actor_clock::duration_type timeout) &&
 Schedules the message for delivery with a relative timeout.
 
template<class Handle >
auto request (const Handle &receiver, timespan relative_timeout) &&
 Sends the message to receiver as a request message and returns a handle for processing the response.
 
- Public Member Functions inherited from caf::async_mail_base_t< Priority, Trait, Args... >
 async_mail_base_t (local_actor *self, message &&content)
 
 async_mail_base_t (const async_mail_base_t &)=delete
 
async_mail_base_toperator= (const async_mail_base_t &)=delete
 
void send (const Handle &receiver) &&
 Sends the message to receiver.
 
auto delegate (const Handle &receiver) &&
 Sends the message to receiver.
 

Additional Inherited Members

- Protected Attributes inherited from caf::async_mail_base_t< Priority, Trait, Args... >
local_actorself_
 
message content_
 

Detailed Description

template<message_priority Priority, class Trait, class... Args>
class caf::blocking_mail_t< Priority, Trait, Args >

Provides a fluent interface for sending asynchronous messages to actors.


The documentation for this class was generated from the following file: