public interface LeaderRetrievalEventHandler
LeaderRetrievalDriver could not guarantee that there
LeaderRetrievalEventHandler callbacks happen after
LeaderRetrievalDriver.close(). This means that the implementor of
LeaderRetrievalEventHandler is responsible for filtering out spurious callbacks(e.g. after close
has been called on
|Modifier and Type||Method and Description|
Called by specific
void notifyLeaderAddress(LeaderInformation leaderInformation)
LeaderRetrievalDriverto notify leader address.
Duplicated leader change events could happen, so the implementation should check whether the passed leader information is truly changed with last stored leader information.
leaderInformation- the new leader information to notify
LeaderRetrievalService. It could be
LeaderInformation.empty()if the leader address does not exist in the external storage.
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.