|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hazelcast.cluster.client.ClientMembershipEvent
public final class ClientMembershipEvent
Field Summary | |
---|---|
static int |
MEMBER_ADDED
|
static int |
MEMBER_ATTRIBUTE_CHANGED
|
static int |
MEMBER_REMOVED
|
Constructor Summary | |
---|---|
ClientMembershipEvent()
|
|
ClientMembershipEvent(Member member,
int eventType)
|
|
ClientMembershipEvent(Member member,
MemberAttributeChange memberAttributeChange)
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MEMBER_ADDED
public static final int MEMBER_REMOVED
public static final int MEMBER_ATTRIBUTE_CHANGED
Constructor Detail |
---|
public ClientMembershipEvent()
public ClientMembershipEvent(Member member, int eventType)
public ClientMembershipEvent(Member member, MemberAttributeChange memberAttributeChange)
Method Detail |
---|
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
- output
IOException
public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- input
IOException
public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |