Hazelcast C++ Client
|
Cluster membership listener. More...
#include <MembershipListener.h>
Public Member Functions | |
virtual void | memberAdded (const MembershipEvent &membershipEvent)=0 |
Invoked when a new member is added to the cluster. More... | |
virtual void | memberRemoved (const MembershipEvent &membershipEvent)=0 |
Invoked when an existing member leaves the cluster. More... | |
virtual void | memberAttributeChanged (const MemberAttributeEvent &memberAttributeEvent)=0 |
Invoked when an attribute of a member was changed. More... | |
Cluster membership listener.
The MembershipListener will never be called concurrently and all MembershipListeners will receive the events in the same order.
Warning 1: If listener should do a time consuming operation, off-load the operation to another thread. otherwise it will slow down the system.
Warning 2: Do not make a call to hazelcast. It can cause deadlock.
|
pure virtual |
Invoked when a new member is added to the cluster.
membershipEvent | membership event |
Implemented in hazelcast::client::MembershipAdapter.
|
pure virtual |
Invoked when an attribute of a member was changed.
memberAttributeEvent | member attribute event |
Implemented in hazelcast::client::MembershipAdapter.
|
pure virtual |
Invoked when an existing member leaves the cluster.
membershipEvent | membership event |
Implemented in hazelcast::client::MembershipAdapter.