C++ Actor Framework 0.19
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
caf::net::dsl::client_factory_base< Config, Derived > Class Template Reference

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_baseoperator= (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 ()
 

Detailed Description

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

Base type for client factories for use with can_connect.

Member Function Documentation

◆ connection_timeout()

template<class Config , class Derived >
Derived & caf::net::dsl::client_factory_base< Config, 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 Config , class Derived >
Derived & caf::net::dsl::client_factory_base< Config, 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 Config , class Derived >
Derived & caf::net::dsl::client_factory_base< Config, 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: