SObjectizer
5.7
|
Parameters for defining chain size. More...
#include <mchain.hpp>
Public Member Functions | |
capacity_t () | |
Default constructor. More... | |
bool | unlimited () const |
Is message chain have no size limit? More... | |
std::size_t | max_size () const |
Max size for size-limited chain. More... | |
memory_usage_t | memory_usage () const |
Memory allocation type for size-limited chain. More... | |
overflow_reaction_t | overflow_reaction () const |
Overflow reaction for size-limited chain. More... | |
bool | is_overflow_timeout_defined () const |
Is waiting timeout for overflow case defined? More... | |
duration_t | overflow_timeout () const |
Get the value of waiting timeout for overflow case. More... | |
Static Public Member Functions | |
static capacity_t | make_unlimited () |
Create capacity description for size-unlimited message chain. More... | |
static capacity_t | make_limited_without_waiting (std::size_t max_size, memory_usage_t memory_usage, overflow_reaction_t overflow_reaction) |
static capacity_t | make_limited_with_waiting (std::size_t max_size, memory_usage_t memory_usage, overflow_reaction_t overflow_reaction, duration_t wait_timeout) |
Private Member Functions | |
capacity_t (std::size_t max_size, memory_usage_t memory_usage, overflow_reaction_t overflow_reaction, duration_t overflow_timeout) | |
Initializing constructor for size-limited message chain. More... | |
Private Attributes | |
bool | m_unlimited = { true } |
Has chain unlimited size? More... | |
std::size_t | m_max_size |
Max size of the chain with limited size. More... | |
memory_usage_t | m_memory |
Type of the storage for size-limited chain. More... | |
overflow_reaction_t | m_overflow_reaction |
Type of reaction for chain overflow. More... | |
duration_t | m_overflow_timeout |
Timeout for waiting on full chain during 'message push' operation. More... | |
Parameters for defining chain size.
|
inlineprivate |
Initializing constructor for size-limited message chain.
|
inline |
Default constructor.
Creates description for size-unlimited chain.
|
inline |
Is waiting timeout for overflow case defined?
|
inlinestatic |
Create capacity description for size-limited message chain with waiting on full queue during 'push message' operation.
max_size | Max size of the chain. |
memory_usage | Type of chain storage. |
overflow_reaction | Reaction on chain overflow. |
wait_timeout | Waiting time on full message chain. |
|
inlinestatic |
Create capacity description for size-limited message chain without waiting on full queue during 'push message' operation.
max_size | Max size of the chain. |
memory_usage | Type of chain storage. |
overflow_reaction | Reaction on chain overflow. |
|
inlinestatic |
Create capacity description for size-unlimited message chain.
|
inline |
Max size for size-limited chain.
|
inline |
Memory allocation type for size-limited chain.
|
inline |
Overflow reaction for size-limited chain.
|
inline |
Get the value of waiting timeout for overflow case.
|
inline |
Is message chain have no size limit?
|
private |
Max size of the chain with limited size.
|
private |
Type of the storage for size-limited chain.
|
private |
Type of reaction for chain overflow.
|
private |
Timeout for waiting on full chain during 'message push' operation.
|
private |
Has chain unlimited size?