SObjectizer-5 Extra
|
Namespaces | |
namespace | errors |
namespace | impl |
Classes | |
struct | drop_if_not_found_case_t |
Description of a case when a message of unknown type has to be dropped. More... | |
class | mbox_builder_t |
Factory class for building an instance of composite mbox. More... | |
class | redirect_to_if_not_found_case_t |
Description of a case when messages of unknown type have to be redirected to another mbox. More... | |
struct | throw_if_not_found_case_t |
Description of a case when an exception has to be thrown if the type of a message is unknown. More... | |
Typedefs | |
using | type_not_found_reaction_t |
Type that describes the reaction to a message of unknown type. | |
Functions | |
type_not_found_reaction_t | redirect_to_if_not_found (const mbox_t &dest_mbox) |
Helper function to set a reaction to unknown message type. | |
type_not_found_reaction_t | throw_if_not_found () |
Helper function to set a reaction to unknown message type. | |
type_not_found_reaction_t | drop_if_not_found () |
Helper function to set a reaction to unknown message type. | |
mbox_builder_t | builder (mbox_type_t mbox_type, type_not_found_reaction_t unknown_type_reaction) |
Factory function for making mbox_builder. | |
mbox_builder_t | multi_consumer_builder (type_not_found_reaction_t unknown_type_reaction) |
Factory function for making mbox_builder that produces MPMC composite mbox. | |
mbox_builder_t | single_consumer_builder (type_not_found_reaction_t unknown_type_reaction) |
Factory function for making mbox_builder that produces MPSC composite mbox. | |
Type that describes the reaction to a message of unknown type.
Definition at line 139 of file composite.hpp.
|
inlinenodiscard |
Factory function for making mbox_builder.
Usage example:
mbox_type | Type of new mbox: MPMC or MPSC. |
unknown_type_reaction | What to do if message type is unknown. |
Definition at line 1164 of file composite.hpp.
|
inlinenodiscard |
Helper function to set a reaction to unknown message type.
Attempt to use unknown message type (e.g. sending of a message, subscription or settting delivery filter) should be silently ignored.
Usage example:
Definition at line 217 of file composite.hpp.
|
inlinenodiscard |
Factory function for making mbox_builder that produces MPMC composite mbox.
Usage example:
unknown_type_reaction | What to do if message type is unknown. |
Definition at line 1193 of file composite.hpp.
|
inlinenodiscard |
Helper function to set a reaction to unknown message type.
Message of unknown type has to be redirected to specified mbox. Subscriptions and delivery filters for unknown type have also be handled by dest_mbox.
Usage example:
Definition at line 166 of file composite.hpp.
|
inlinenodiscard |
Factory function for making mbox_builder that produces MPSC composite mbox.
Usage example:
Definition at line 1222 of file composite.hpp.
|
inlinenodiscard |
Helper function to set a reaction to unknown message type.
Attempt to use unknown message type (e.g. sending of a message, subscription or settting delivery filter) should lead to raising an exception (an instance of so_5::exception_t will be thrown).
Usage example:
Definition at line 192 of file composite.hpp.