SObjectizer  5.5
Namespaces | Classes | Typedefs | Functions
so_5::message_limit Namespace Reference

All stuff related to message limits. More...

Namespaces

 impl
 Internal implementation of message limits related stuff.
 

Classes

struct  abort_app_indicator_t
 Message limit with reaction 'abort the application'. More...
 
struct  control_block_t
 A control block for one message limit. More...
 
struct  description_t
 A description of one message limit. More...
 
struct  drop_indicator_t
 Message limit with reaction 'drop new message'. More...
 
struct  log_then_abort_app_indicator_t
 Message limit with reaction 'abort the application' and the possibility to call additional lambda before aborting the app. More...
 
struct  message_limit_methods_mixin_t
 A mixin with message limit definition methods. More...
 
struct  overlimit_context_t
 Description of context for overlimit action. More...
 
struct  redirect_indicator_t
 Indication that a message must be redirected on overlimit. More...
 
struct  transform_indicator_t
 An indicator of transform reaction on message overlimit. More...
 
class  transformed_message_t
 A result of message transformation. More...
 

Typedefs

using action_t = std::function< void(const overlimit_context_t &) >
 A type for reaction of message overlimit. More...
 
using description_container_t = std::vector< description_t >
 Type of container for holding message limit descriptions. More...
 

Functions

template<class M >
void accept_one_indicator (description_container_t &to, const drop_indicator_t< M > &indicator)
 Helper function for accepting drop_indicator and storing the corresponding description into the limits container. More...
 
template<class M >
void accept_one_indicator (description_container_t &to, const abort_app_indicator_t< M > &indicator)
 Helper function for accepting abort_app_indicator and storing the corresponding description into the limits container. More...
 
template<class M , class L >
void accept_one_indicator (description_container_t &to, const log_then_abort_app_indicator_t< M, L > &indicator)
 Helper function for accepting log_then_abort_app_indicator and storing the corresponding description into the limits container. More...
 
template<typename Msg , typename Lambda >
void accept_one_indicator (description_container_t &to, redirect_indicator_t< Msg, Lambda > indicator)
 Helper function for accepting redirect_indicator and storing the corresponding description into the limits container. More...
 
template<class M >
void accept_one_indicator (description_container_t &to, transform_indicator_t< M > indicator)
 Helper function for accepting transform_indicator and storing the corresponding description into the limits container. More...
 
template<typename I , typename... Args>
void accept_indicators (description_container_t &to, I &&indicator, Args &&... others)
 Helper function for constructing limits description from a series of limit indicators. More...
 
void accept_indicators (description_container_t &)
 

Detailed Description

All stuff related to message limits.

Since
v.5.5.4

Typedef Documentation

◆ action_t

using so_5::message_limit::action_t = typedef std::function< void(const overlimit_context_t&) >

A type for reaction of message overlimit.

Since
v.5.5.4

◆ description_container_t

Type of container for holding message limit descriptions.

Since
v.5.5.4

Function Documentation

◆ accept_indicators() [1/2]

template<typename I , typename... Args>
void so_5::message_limit::accept_indicators ( description_container_t to,
I &&  indicator,
Args &&...  others 
)

Helper function for constructing limits description from a series of limit indicators.

Since
v.5.5.4

◆ accept_indicators() [2/2]

void so_5::message_limit::accept_indicators ( description_container_t )
inline

◆ accept_one_indicator() [1/5]

template<class M >
void so_5::message_limit::accept_one_indicator ( description_container_t to,
const drop_indicator_t< M > &  indicator 
)

Helper function for accepting drop_indicator and storing the corresponding description into the limits container.

Since
v.5.5.4
Parameters
toContainer for storing new description to.
indicatorAn instance of drop_indicator.

◆ accept_one_indicator() [2/5]

template<class M >
void so_5::message_limit::accept_one_indicator ( description_container_t to,
const abort_app_indicator_t< M > &  indicator 
)

Helper function for accepting abort_app_indicator and storing the corresponding description into the limits container.

Since
v.5.5.4
Parameters
toContainer for storing new description to.
indicatorAn instance of abort_app_indicator to store.

◆ accept_one_indicator() [3/5]

template<class M , class L >
void so_5::message_limit::accept_one_indicator ( description_container_t to,
const log_then_abort_app_indicator_t< M, L > &  indicator 
)

Helper function for accepting log_then_abort_app_indicator and storing the corresponding description into the limits container.

Since
v.5.5.8
Parameters
toContainer for storing new description to.
indicatorAn instance of abort_app_indicator to store.

◆ accept_one_indicator() [4/5]

template<typename Msg , typename Lambda >
void so_5::message_limit::accept_one_indicator ( description_container_t to,
redirect_indicator_t< Msg, Lambda >  indicator 
)

Helper function for accepting redirect_indicator and storing the corresponding description into the limits container.

Since
v.5.5.4
Parameters
toContainer for storing new description to.
indicatorAn instance of redirect_indicator to be stored.

◆ accept_one_indicator() [5/5]

template<class M >
void so_5::message_limit::accept_one_indicator ( description_container_t to,
transform_indicator_t< M >  indicator 
)

Helper function for accepting transform_indicator and storing the corresponding description into the limits container.

Since
v.5.5.4
Parameters
toContainer for storing new description to.
indicatorAn instance of transform_indicator to be stored.