Hazelcast C++ Client
 All Classes Functions Variables Enumerations Enumerator Pages
MembershipListener.h
1 /*
2  * Copyright (c) 2008-2017, Hazelcast, Inc. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 //
17 // MembershipListener.h
18 // cpp-client
19 //
20 // Created by sancar koyunlu on 5/30/13.
21 // Copyright (c) 2013 hazelcast. All rights reserved.
22 //
23 
24 #ifndef HAZELCAST_MEMBERSHIP_LISTENER
25 #define HAZELCAST_MEMBERSHIP_LISTENER
26 
27 #include "hazelcast/util/HazelcastDll.h"
28 
29 namespace hazelcast {
30  namespace client {
31 
32  class MembershipEvent;
33 
34  class MemberAttributeEvent;
35 
51  class HAZELCAST_API MembershipListener {
52  public:
53  virtual ~MembershipListener();
54 
60  virtual void memberAdded(const MembershipEvent &membershipEvent) = 0;
61 
67  virtual void memberRemoved(const MembershipEvent &membershipEvent) = 0;
68 
74  virtual void memberAttributeChanged(const MemberAttributeEvent &memberAttributeEvent) = 0;
75 
76  };
77  }
78 }
79 #endif /* HAZELCAST_MEMBERSHIP_LISTENER */
80 
Definition: MemberAttributeEvent.h:44
Membership event fired when a new member is added to the cluster and/or when a member leaves the clus...
Definition: MembershipEvent.h:42
Cluster membership listener.
Definition: MembershipListener.h:51