C++ Actor Framework 1.0.0
|
An (optional) component of the actor system with networking capabilities. More...
#include <actor_system.hpp>
Public Member Functions | |
virtual void | monitor (const node_id &node, const actor_addr &observer)=0 |
Causes the module to send a node_down_msg to observer if this system loses connection to node . | |
virtual void | demonitor (const node_id &node, const actor_addr &observer)=0 |
Causes the module remove one entry for observer from the list of actors that receive a node_down_msg if this system loses connection to node . | |
Public Member Functions inherited from caf::actor_system_module | |
const char * | name () const noexcept |
Returns the human-readable name of the module. | |
virtual void | start ()=0 |
Starts any background threads needed by the module. | |
virtual void | stop ()=0 |
Stops all background threads of the module. | |
virtual void | init (actor_system_config &)=0 |
Allows the module to change the configuration of the actor system during startup. | |
virtual id_t | id () const =0 |
Returns the identifier of this module. | |
virtual void * | subtype_ptr ()=0 |
Returns a pointer to the subtype. | |
Additional Inherited Members | |
Public Types inherited from caf::actor_system_module | |
enum | id_t { middleman , openssl_manager , network_manager , num_ids } |
An (optional) component of the actor system with networking capabilities.
|
pure virtual |
Causes the module remove one entry for observer
from the list of actors that receive a node_down_msg
if this system loses connection to node
.
Each call to monitor
requires one call to demonitor
in order to unsubscribe the observer
completely.
Implemented in caf::io::middleman.
|
pure virtual |
Causes the module to send a node_down_msg
to observer
if this system loses connection to node
.
Implemented in caf::io::middleman.