Hazelcast C++ Client
Public Member Functions | Friends | List of all members
hazelcast::client::lifecycle_listener Class Referencefinal

Listener object for listening lifecycle events of hazelcast instance. More...

#include <lifecycle_listener.h>

Public Member Functions

template<typename Handler , typename = util::enable_if_rvalue_ref_t<Handler &&>>
lifecycle_listeneron_starting (Handler &&h) &
 Set an handler function to be invoked when the client is starting. More...
 
template<typename Handler , typename = util::enable_if_rvalue_ref_t<Handler &&>>
lifecycle_listener && on_starting (Handler &&h) &&
 Set an handler function to be invoked when the client is starting. More...
 
template<typename Handler , typename = util::enable_if_rvalue_ref_t<Handler &&>>
lifecycle_listeneron_started (Handler &&h) &
 Set an handler function to be invoked when the client has started. More...
 
template<typename Handler , typename = util::enable_if_rvalue_ref_t<Handler &&>>
lifecycle_listener && on_started (Handler &&h) &&
 Set an handler function to be invoked when the client has started. More...
 
template<typename Handler , typename = util::enable_if_rvalue_ref_t<Handler &&>>
lifecycle_listeneron_shutting_down (Handler &&h) &
 Set an handler function to be invoked when the client is shutting down. More...
 
template<typename Handler , typename = util::enable_if_rvalue_ref_t<Handler &&>>
lifecycle_listener && on_shutting_down (Handler &&h) &&
 Set an handler function to be invoked when the client is shutting down. More...
 
template<typename Handler , typename = util::enable_if_rvalue_ref_t<Handler &&>>
lifecycle_listeneron_shutdown (Handler &&h) &
 Set an handler function to be invoked when the client's shutdown has completed. More...
 
template<typename Handler , typename = util::enable_if_rvalue_ref_t<Handler &&>>
lifecycle_listener && on_shutdown (Handler &&h) &&
 Set an handler function to be invoked when the client's shutdown has completed. More...
 
template<typename Handler , typename = util::enable_if_rvalue_ref_t<Handler &&>>
lifecycle_listeneron_connected (Handler &&h) &
 Set an handler function to be invoked when the client is connected to the cluster. More...
 
template<typename Handler , typename = util::enable_if_rvalue_ref_t<Handler &&>>
lifecycle_listener && on_connected (Handler &&h) &&
 Set an handler function to be invoked when the client is connected to the cluster. More...
 
template<typename Handler , typename = util::enable_if_rvalue_ref_t<Handler &&>>
lifecycle_listeneron_disconnected (Handler &&h) &
 Set an handler function to be invoked when client is disconnected from the cluster. More...
 
template<typename Handler , typename = util::enable_if_rvalue_ref_t<Handler &&>>
lifecycle_listener && on_disconnected (Handler &&h) &&
 Set an handler function to be invoked when client is disconnected from the cluster. More...
 

Friends

class spi::lifecycle_service
 

Detailed Description

Listener object for listening lifecycle events of hazelcast instance.

Warning
1 - If listener should do a time consuming operation, off-load the operation to another thread. otherwise it will slow down the system.
2 - Do not make a call to hazelcast. It can cause a deadlock.
See also
LifecycleEvent
hazelcast_client::addlifecycle_listener

Member Function Documentation

◆ on_connected() [1/2]

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

Set an handler function to be invoked when the client is connected to the cluster.

Parameters
ha void function object that is callable without any parameters.
Returns
*this

◆ on_connected() [2/2]

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

Set an handler function to be invoked when the client is connected to the cluster.

Parameters
ha void function object that is callable without any parameters.
Returns
*this

◆ on_disconnected() [1/2]

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

Set an handler function to be invoked when client is disconnected from the cluster.

Parameters
ha void function object that is callable without any parameters.
Returns
*this

◆ on_disconnected() [2/2]

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

Set an handler function to be invoked when client is disconnected from the cluster.

Parameters
ha void function object that is callable without any parameters.
Returns
*this

◆ on_shutdown() [1/2]

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

Set an handler function to be invoked when the client's shutdown has completed.

Parameters
ha void function object that is callable without any parameters.
Returns
*this

◆ on_shutdown() [2/2]

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

Set an handler function to be invoked when the client's shutdown has completed.

Parameters
ha void function object that is callable without any parameters.
Returns
*this

◆ on_shutting_down() [1/2]

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

Set an handler function to be invoked when the client is shutting down.

Parameters
ha void function object that is callable without any parameters.
Returns
*this

◆ on_shutting_down() [2/2]

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

Set an handler function to be invoked when the client is shutting down.

Parameters
ha void function object that is callable without any parameters.
Returns
*this

◆ on_started() [1/2]

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

Set an handler function to be invoked when the client has started.

Parameters
ha void function object that is callable without any parameters.
Returns
*this

◆ on_started() [2/2]

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

Set an handler function to be invoked when the client has started.

Parameters
ha void function object that is callable without any parameters.
Returns
*this

◆ on_starting() [1/2]

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

Set an handler function to be invoked when the client is starting.

Parameters
ha void function object that is callable without any parameters.
Returns
*this

◆ on_starting() [2/2]

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

Set an handler function to be invoked when the client is starting.

Parameters
ha void function object that is callable without any parameters.
Returns
*this

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