SObjectizer  5.5
Public Member Functions | Private Attributes | List of all members
so_5::mchain_receive_params_t Class Referencefinal

Parameters for advanced receive from mchain. More...

#include <mchain.hpp>

Inheritance diagram for so_5::mchain_receive_params_t:
so_5::mchain_bulk_processing_params_t< mchain_receive_params_t >

Public Member Functions

 mchain_receive_params_t (mchain_t chain)
 Initializing constructor. More...
 
const mchain_tchain () const
 Chain from which messages must be extracted and handled. More...
 
- Public Member Functions inherited from so_5::mchain_bulk_processing_params_t< mchain_receive_params_t >
actual_typeextract_n (std::size_t v)
 Set limit for count of messages to be extracted. More...
 
std::size_t to_extract () const
 Get limit for count of messages to be extracted. More...
 
actual_typehandle_n (std::size_t v)
 Set limit for count of messages to be handled. More...
 
std::size_t to_handle () const
 Get limit for count of message to be handled. More...
 
actual_typeempty_timeout (Timeout v)
 Set timeout for waiting on empty chain. More...
 
const mchain_props::duration_tempty_timeout () const
 Get timeout for waiting on empty chain. More...
 
actual_typeno_wait_on_empty ()
 Disable waiting on the empty queue. More...
 
actual_typetotal_time (Timeout v)
 Set total time for the whole receive operation. More...
 
const mchain_props::duration_ttotal_time () const
 Get total time for the whole receive operation. More...
 
actual_typestop_on (stop_predicate predicate)
 Set user condition for stopping receive operation. More...
 
const stop_predicatestop_on () const
 Get user condition for stopping receive operation. More...
 
actual_typeon_close (chain_closed_handler handler)
 Set handler for chain-closed event. More...
 
const chain_closed_handlerclosed_handler () const
 Get handler for chain-closed event. More...
 

Private Attributes

mchain_t m_chain
 Chain from which messages must be extracted and handled. More...
 

Additional Inherited Members

- Public Types inherited from so_5::mchain_bulk_processing_params_t< mchain_receive_params_t >
using actual_type = mchain_receive_params_t
 Actual type of params. More...
 
using stop_predicate = std::function< bool() >
 Type of stop-predicate. More...
 
using chain_closed_handler = std::function< void(const mchain_t &) >
 Type of chain-closed event. More...
 
- Protected Member Functions inherited from so_5::mchain_bulk_processing_params_t< mchain_receive_params_t >
actual_typeself_reference ()
 

Detailed Description

Parameters for advanced receive from mchain.

See also
so_5::from().
Note
Derived from basic_receive_params_t since v.5.5.16.
Since
v.5.5.13

Constructor & Destructor Documentation

◆ mchain_receive_params_t()

so_5::mchain_receive_params_t::mchain_receive_params_t ( mchain_t  chain)
inline

Initializing constructor.

Parameters
chainChain from which messages must be extracted and handled.

Member Function Documentation

◆ chain()

const mchain_t& so_5::mchain_receive_params_t::chain ( ) const
inline

Chain from which messages must be extracted and handled.

Member Data Documentation

◆ m_chain

mchain_t so_5::mchain_receive_params_t::m_chain
private

Chain from which messages must be extracted and handled.


The documentation for this class was generated from the following file: