Interface ClusterMemberAware

  • All Known Implementing Classes:
    ClusteredExecutorInfo

    public interface ClusterMemberAware
    A ClusterMemberAware object is aware of its cluster Member wishes to receive Member lifecycle events. See MemberListener.
    Since:
    21.12
    Author:
    phf
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.tangosol.util.UID getUid()
      The UID of the Member for which this object wishes to receive membership events.
      boolean onMemberJoined()
      A callback invoked as part of an InvocableMap.EntryProcessor to perform custom operations when the Member has joined the cluster.
      boolean onMemberLeaving()
      A callback invoked as part of an InvocableMap.EntryProcessor to perform custom operations when the Member is leaving the cluster.
      boolean onMemberLeft()
      A callback invoked as part of an InvocableMap.EntryProcessor to perform custom operations when the Member is leaving the cluster.
    • Method Detail

      • getUid

        com.tangosol.util.UID getUid()
        The UID of the Member for which this object wishes to receive membership events. May return null which means do not receive membership events.
        Returns:
        a UID
      • onMemberJoined

        boolean onMemberJoined()
        A callback invoked as part of an InvocableMap.EntryProcessor to perform custom operations when the Member has joined the cluster.
        Returns:
        true if the ClusterMemberAware state was mutated and should be saved, false otherwise
        See Also:
        MemberListener.memberJoined(MemberEvent)
      • onMemberLeaving

        boolean onMemberLeaving()
        A callback invoked as part of an InvocableMap.EntryProcessor to perform custom operations when the Member is leaving the cluster.
        Returns:
        true if the ClusterMemberAware state was mutated and should be saved, false otherwise
      • onMemberLeft

        boolean onMemberLeft()
        A callback invoked as part of an InvocableMap.EntryProcessor to perform custom operations when the Member is leaving the cluster.

        See MemberListener.memberLeft(MemberEvent).

        Returns:
        true if the ClusterMemberAware state was mutated and should be saved, false otherwise