C++ Actor Framework 1.0.0
Loading...
Searching...
No Matches
caf::net::dsl::client_factory_base< Derived > Class Template Referenceabstract

Base type for client factories for use with has_connect. More...

#include <client_factory_base.hpp>

Public Member Functions

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.
 

Protected Member Functions

Derived & dref ()
 
template<class Fn >
auto with_ssl_connection (Fn &&fn)
 
template<class Fn >
auto with_ssl_connection_or_socket (Fn &&fn)
 
template<class Fn >
auto with_ssl_connection_or_socket_select (bool use_ssl, Fn &&fn)
 
virtual client_config_value & base_config ()=0
 

Detailed Description

template<class Derived>
class caf::net::dsl::client_factory_base< Derived >

Base type for client factories for use with has_connect.

Member Function Documentation

◆ connection_timeout()

template<class Derived >
Derived & caf::net::dsl::client_factory_base< Derived >::connection_timeout ( timespan value)

Sets the connection timeout for connection attempts.

Parameters
valueThe new connection timeout.
Returns
a reference to this client_factory.

◆ max_retry_count()

template<class Derived >
Derived & caf::net::dsl::client_factory_base< Derived >::max_retry_count ( size_t value)

Sets the maximum number of connection retry attempts.

Parameters
valueThe new maximum retry count.
Returns
a reference to this client_factory.

◆ retry_delay()

template<class Derived >
Derived & caf::net::dsl::client_factory_base< Derived >::retry_delay ( timespan value)

Sets the retry delay for connection attempts.

Parameters
valueThe new retry delay.
Returns
a reference to this client_factory.

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