Hazelcast C++ Client
Hazelcast C++ Client Library
Loading...
Searching...
No Matches
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_trait<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.
template<typename Handler, typename = util::enable_if_rvalue_ref_trait<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_trait<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 54 of file socket_interceptor.h.

55 {
56 connect_ = std::forward<Handler>(h);
57 return *this;
58 }

◆ on_connect() [2/2]

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

Definition at line 65 of file socket_interceptor.h.

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

◆ connection::ClientConnectionManagerImpl

friend class connection::ClientConnectionManagerImpl
friend

Definition at line 72 of file socket_interceptor.h.


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