|
C++ Actor Framework 0.19
|
A subscriber is an actor that can subscribe to a group via self->join(...).
More...
#include <subscriber.hpp>
Public Types | |
| using | extended_base = subscriber |
| Allows subtypes to refer mixed types with a simple name. | |
| using | subscriptions = std::unordered_set< group > |
| A container for storing subscribed groups. | |
Public Member Functions | |
| template<class... Ts> | |
| subscriber (actor_config &cfg, Ts &&... xs) | |
| bool | cleanup (error &&fail_state, execution_unit *ptr) override |
| void | join (const group &what) |
Causes this actor to subscribe to the group what. | |
| void | leave (const group &what) |
Causes this actor to leave the group what. | |
| const subscriptions & | joined_groups () const |
| Returns all subscribed groups. | |
A subscriber is an actor that can subscribe to a group via self->join(...).
| void caf::mixin::subscriber< Base, Subtype >::join | ( | const group & | what | ) |
Causes this actor to subscribe to the group what.
The group will be unsubscribed if the actor finishes execution.