public final class ClientMembershipEvent extends Object implements IdentifiedDataSerializable
Modifier and Type | Field and Description |
---|---|
static int |
MEMBER_ADDED |
static int |
MEMBER_ATTRIBUTE_CHANGED |
static int |
MEMBER_REMOVED |
Constructor and Description |
---|
ClientMembershipEvent() |
ClientMembershipEvent(Member member,
int eventType) |
ClientMembershipEvent(Member member,
MemberAttributeChange memberAttributeChange) |
Modifier and Type | Method and Description |
---|---|
int |
getEventType()
Returns the membership event type; #MEMBER_ADDED or #MEMBER_REMOVED
|
int |
getFactoryId()
Returns DataSerializableFactory factory id for this class.
|
int |
getId()
Returns type identifier for this class.
|
Member |
getMember()
Returns the removed or added member.
|
MemberAttributeChange |
getMemberAttributeChange()
Returns the member attribute chance operation to execute
if event type is
MEMBER_ATTRIBUTE_CHANGED . |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public static final int MEMBER_ADDED
public static final int MEMBER_REMOVED
public static final int MEMBER_ATTRIBUTE_CHANGED
public ClientMembershipEvent()
public ClientMembershipEvent(Member member, int eventType)
public ClientMembershipEvent(Member member, MemberAttributeChange memberAttributeChange)
public int getEventType()
public Member getMember()
public MemberAttributeChange getMemberAttributeChange()
MEMBER_ATTRIBUTE_CHANGED
.public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.