public class MemberAttributeEvent extends MembershipEvent implements DataSerializable
MEMBER_ADDED, MEMBER_ATTRIBUTE_CHANGED, MEMBER_REMOVED
source
Constructor and Description |
---|
MemberAttributeEvent() |
MemberAttributeEvent(Cluster cluster,
Member member,
MemberAttributeOperationType operationType,
String key,
Object value) |
Modifier and Type | Method and Description |
---|---|
String |
getKey()
Returns the key for this MemberAttributeEvent.
|
Member |
getMember()
Returns the removed or added member.
|
MemberAttributeOperationType |
getOperationType()
Returns the type of member attribute change for this MemberAttributeEvent.
|
Object |
getValue()
Returns the value for this MemberAttributeEvent.
|
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
getCluster, getEventType, getMembers, toString
getSource
public MemberAttributeEvent()
public MemberAttributeEvent(Cluster cluster, Member member, MemberAttributeOperationType operationType, String key, Object value)
public MemberAttributeOperationType getOperationType()
public String getKey()
public Object getValue()
public Member getMember()
MembershipEvent
getMember
in class MembershipEvent
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
output stream has been closed.public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
input stream has been closed.Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.