|
SObjectizer
5.7
|
Basic parameters for advanced receive from mchain and for multi chain select. More...
#include <mchain.hpp>
Public Types | |
| using | actual_type = Derived |
| using | data_type = Data |
Public Types inherited from so_5::mchain_props::details::mchain_bulk_processing_basic_params_t< Data > | |
| using | stop_predicate_t = typename Data ::stop_predicate_t |
| Type of stop-predicate. More... | |
| using | chain_closed_handler_t = typename Data ::chain_closed_handler_t |
| Type of chain-closed event. More... | |
Public Member Functions | |
| mchain_bulk_processing_params_t ()=default | |
| Default constructor. More... | |
| mchain_bulk_processing_params_t (Data data) | |
| Initializing constructor. More... | |
| decltype(auto) | handle_all () noexcept |
| decltype(auto) | extract_n (std::size_t v) noexcept |
| Set limit for count of messages to be extracted. More... | |
| decltype(auto) | handle_n (std::size_t v) noexcept |
| Set limit for count of messages to be handled. More... | |
| template<typename Timeout > | |
| actual_type & | empty_timeout (Timeout v) noexcept |
| Set timeout for waiting on empty chain. More... | |
| actual_type & | no_wait_on_empty () noexcept |
| Disable waiting on the empty queue. More... | |
| template<typename Timeout > | |
| actual_type & | total_time (Timeout v) noexcept |
| Set total time for the whole receive operation. More... | |
| actual_type & | stop_on (typename basic_t::stop_predicate_t predicate) noexcept |
| Set user condition for stopping receive operation. More... | |
| actual_type & | on_close (typename basic_t::chain_closed_handler_t handler) noexcept |
| Set handler for chain-closed event. More... | |
Public Member Functions inherited from so_5::mchain_props::details::mchain_bulk_processing_basic_params_t< Data > | |
| mchain_bulk_processing_basic_params_t ()=default | |
| Default constructor. More... | |
| mchain_bulk_processing_basic_params_t (Data data) | |
| Initializing constructor. More... | |
| std::size_t | to_extract () const noexcept |
| Get limit for count of messages to be extracted. More... | |
| std::size_t | to_handle () const noexcept |
| Get limit for count of message to be handled. More... | |
| const mchain_props::duration_t & | empty_timeout () const noexcept |
| Get timeout for waiting on empty chain. More... | |
| const mchain_props::duration_t & | total_time () const noexcept |
| Get total time for the whole receive operation. More... | |
| const stop_predicate_t & | stop_on () const noexcept |
| Get user condition for stopping receive operation. More... | |
| const chain_closed_handler_t & | closed_handler () const noexcept |
| Get handler for chain-closed event. More... | |
| const auto & | so5_data () const noexcept |
| Access to internal data. More... | |
Protected Member Functions | |
| actual_type & | self_reference () |
| decltype(auto) | clone_as_defined () noexcept |
Protected Member Functions inherited from so_5::mchain_props::details::mchain_bulk_processing_basic_params_t< Data > | |
| void | set_extract_n (std::size_t v) noexcept |
| Set limit for count of messages to be extracted. More... | |
| void | set_handle_n (std::size_t v) noexcept |
| Set limit for count of messages to be handled. More... | |
| void | set_empty_timeout (Timeout v) noexcept |
| Set timeout for waiting on empty chain. More... | |
| void | set_total_time (Timeout v) noexcept |
| Set total time for the whole receive operation. More... | |
| void | set_stop_on (stop_predicate_t predicate) noexcept |
| Set user condition for stopping receive operation. More... | |
| void | set_on_close (chain_closed_handler_t handler) noexcept |
| Set handler for chain-closed event. More... | |
Private Types | |
| using | basic_t = mchain_props::details::mchain_bulk_processing_basic_params_t< Data > |
Basic parameters for advanced receive from mchain and for multi chain select.
| using so_5::mchain_bulk_processing_params_t< Data, Derived >::actual_type = Derived |
|
private |
| using so_5::mchain_bulk_processing_params_t< Data, Derived >::data_type = Data |
|
default |
Default constructor.
|
inline |
Initializing constructor.
|
inlineprotectednoexcept |
Helper method to make a clone with msg_count_status_t::defined status.
|
inlinenoexcept |
Set timeout for waiting on empty chain.
|
inlinenoexcept |
Set limit for count of messages to be extracted.
When extract_n() is used then receive() will be finished after extraction of the specified number of message.
Usage example:
|
inlinenoexcept |
A directive to handle all messages until chain will be closed or receiving will be stopped manually.
Usage example:
|
inlinenoexcept |
Set limit for count of messages to be handled.
When handled_n() is used then receive() will be finished after handling of the specified number of message.
Usage example:
|
inlinenoexcept |
Disable waiting on the empty queue.
|
inlinenoexcept |
Set handler for chain-closed event.
If there is a previously set handler the old handler will be lost.
Usage example:
|
inlineprotected |
Helper method to get a reference to itself but with a type of the derived class.
|
inlinenoexcept |
Set user condition for stopping receive operation.
|
inlinenoexcept |
Set total time for the whole receive operation.
1.8.14