C++ Actor Framework 0.19
|
Base type for client factories for use with can_connect
.
More...
#include <client_factory_base.hpp>
Public Types | |
using | config_type = Config |
using | trait_type = typename config_type::trait_type |
using | config_pointer = intrusive_ptr< config_type > |
Public Member Functions | |
client_factory_base (const client_factory_base &)=default | |
client_factory_base & | operator= (const client_factory_base &)=default |
template<class T , class... Ts> | |
client_factory_base (dsl::client_config_tag< T > token, Ts &&... xs) | |
template<class F > | |
Derived & | do_on_error (F callback) |
Sets the callback for errors. | |
Derived & | retry_delay (timespan value) |
Sets the retry delay for connection attempts. | |
Derived & | connection_timeout (timespan value) |
Sets the connection timeout for connection attempts. | |
Derived & | max_retry_count (size_t value) |
Sets the maximum number of connection retry attempts. | |
config_type & | config () |
Base type for client factories for use with can_connect
.
Derived & caf::net::dsl::client_factory_base< Config, Derived >::connection_timeout | ( | timespan | value | ) |
Sets the connection timeout for connection attempts.
value | The new connection timeout. |
client_factory
. Derived & caf::net::dsl::client_factory_base< Config, Derived >::max_retry_count | ( | size_t | value | ) |
Sets the maximum number of connection retry attempts.
value | The new maximum retry count. |
client_factory
. Derived & caf::net::dsl::client_factory_base< Config, Derived >::retry_delay | ( | timespan | value | ) |
Sets the retry delay for connection attempts.
value | The new retry delay. |
client_factory
.