C++ Actor Framework 0.19
|
Factory for the with(...).connect(...).start(...)
DSL.
More...
#include <client_factory.hpp>
Public Types | |
using | super = dsl::client_factory_base< client_config< Trait >, client_factory< Trait > > |
using | config_type = typename super::config_type |
![]() | |
using | config_type = client_config< Trait > |
using | trait_type = typename config_type::trait_type |
using | config_pointer = intrusive_ptr< config_type > |
Public Member Functions | |
template<class OnStart > | |
expected< disposable > | start (OnStart on_start) |
Starts a connection with the length-prefixing protocol. | |
![]() | |
client_factory_base (const client_factory_base &)=default | |
client_factory_base (dsl::client_config_tag< T > token, Ts &&... xs) | |
client_factory_base & | operator= (const client_factory_base &)=default |
client_factory< Trait > & | do_on_error (F callback) |
Sets the callback for errors. | |
client_factory< Trait > & | retry_delay (timespan value) |
Sets the retry delay for connection attempts. | |
client_factory< Trait > & | connection_timeout (timespan value) |
Sets the connection timeout for connection attempts. | |
client_factory< Trait > & | max_retry_count (size_t value) |
Sets the maximum number of connection retry attempts. | |
config_type & | config () |
Factory for the with(...).connect(...).start(...)
DSL.