Hazelcast C++ Client
Hazelcast C++ Client Library
hazelcast::client::socket_interceptor Class Referencefinal

An interface that provides the ability to intercept the creation of sockets. More...

#include <socket_interceptor.h>

Public Member Functions

template<typename Handler , typename = util::enable_if_rvalue_ref_t<Handler &&>>
socket_interceptoron_connect (Handler &&h) &
 Set an handler function that will be called with a Socket, each time the client creates a connection to any Member. More...
 
template<typename Handler , typename = util::enable_if_rvalue_ref_t<Handler &&>>
socket_interceptor && on_connect (Handler &&h) &&
 

Friends

class connection::ClientConnectionManagerImpl
 

Detailed Description

An interface that provides the ability to intercept the creation of sockets.

See also
ClientConfig::setSocketInterceptor

Definition at line 43 of file socket_interceptor.h.

Member Function Documentation

◆ on_connect() [1/2]

template<typename Handler , typename = util::enable_if_rvalue_ref_t<Handler &&>>
socket_interceptor& hazelcast::client::socket_interceptor::on_connect ( Handler &&  h) &
inline

Set an handler function that will be called with a Socket, each time the client creates a connection to any Member.

Parameters
ha void function object that is callable with a single parameter of type const Socket &

Definition at line 52 of file socket_interceptor.h.

52  {
53  connect_ = std::forward<Handler>(h);
54  return *this;
55  }

◆ on_connect() [2/2]

template<typename Handler , typename = util::enable_if_rvalue_ref_t<Handler &&>>
socket_interceptor&& hazelcast::client::socket_interceptor::on_connect ( Handler &&  h) &&
inline

Definition at line 62 of file socket_interceptor.h.

62  {
63  on_connect(std::forward<Handler>(h));
64  return std::move(*this);
65  }
socket_interceptor & on_connect(Handler &&h) &
Set an handler function that will be called with a Socket, each time the client creates a connection ...

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