Interface LeaderRetrievalListener

    • Method Detail

      • notifyLeaderAddress

        void notifyLeaderAddress​(@Nullable
                                 String leaderAddress,
                                 @Nullable
                                 UUID leaderSessionID)
        This method is called by the LeaderRetrievalService when a new leader is elected.

        If both arguments are null then it signals that leadership was revoked without a new leader having been elected.

        Parameters:
        leaderAddress - The address of the new leader
        leaderSessionID - The new leader session ID