public interface LeaderRetrievalListener
LeaderRetrievalService
have to implement this interface.| Modifier and Type | Method and Description |
|---|---|
void |
handleError(Exception exception)
This method is called by the
LeaderRetrievalService in case of an exception. |
void |
notifyLeaderAddress(String leaderAddress,
UUID leaderSessionID)
This method is called by the
LeaderRetrievalService when a new leader is elected. |
void notifyLeaderAddress(String leaderAddress, UUID leaderSessionID)
LeaderRetrievalService when a new leader is elected.leaderAddress - The address of the new leaderleaderSessionID - The new leader session IDvoid handleError(Exception exception)
LeaderRetrievalService in case of an exception. This
assures that the LeaderRetrievalListener is aware of any problems occurring in the
LeaderRetrievalService thread.exception - Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.