Interface ClusterMemberAware
-
- All Known Implementing Classes:
ClusteredExecutorInfo
public interface ClusterMemberAwareAClusterMemberAwareobject is aware of its clusterMemberwishes to receive Member lifecycle events. SeeMemberListener.- Since:
- 21.12
- Author:
- phf
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.tangosol.util.UIDgetUid()TheUIDof theMemberfor which this object wishes to receive membership events.booleanonMemberJoined()A callback invoked as part of anInvocableMap.EntryProcessorto perform custom operations when theMemberhas joined the cluster.booleanonMemberLeaving()A callback invoked as part of anInvocableMap.EntryProcessorto perform custom operations when theMemberis leaving the cluster.booleanonMemberLeft()A callback invoked as part of anInvocableMap.EntryProcessorto perform custom operations when theMemberis leaving the cluster.
-
-
-
Method Detail
-
getUid
com.tangosol.util.UID getUid()
TheUIDof theMemberfor which this object wishes to receive membership events. May returnnullwhich means do not receive membership events.- Returns:
- a
UID
-
onMemberJoined
boolean onMemberJoined()
A callback invoked as part of anInvocableMap.EntryProcessorto perform custom operations when theMemberhas joined the cluster.- Returns:
trueif theClusterMemberAwarestate was mutated and should be saved,falseotherwise- See Also:
MemberListener.memberJoined(MemberEvent)
-
onMemberLeaving
boolean onMemberLeaving()
A callback invoked as part of anInvocableMap.EntryProcessorto perform custom operations when theMemberis leaving the cluster.- Returns:
trueif theClusterMemberAwarestate was mutated and should be saved,falseotherwise
-
onMemberLeft
boolean onMemberLeft()
A callback invoked as part of anInvocableMap.EntryProcessorto perform custom operations when theMemberis leaving the cluster.See
MemberListener.memberLeft(MemberEvent).- Returns:
trueif theClusterMemberAwarestate was mutated and should be saved,falseotherwise
-
-