public static class ConnectionUtils.LeaderConnectingAddressListener extends Object implements LeaderRetrievalListener
| Constructor and Description |
|---|
LeaderConnectingAddressListener() |
| Modifier and Type | Method and Description |
|---|---|
InetAddress |
findConnectingAddress(scala.concurrent.duration.FiniteDuration timeout) |
InetAddress |
findConnectingAddress(scala.concurrent.duration.FiniteDuration timeout,
scala.concurrent.duration.FiniteDuration startLoggingAfter) |
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. |
public InetAddress findConnectingAddress(scala.concurrent.duration.FiniteDuration timeout) throws LeaderRetrievalException
LeaderRetrievalExceptionpublic InetAddress findConnectingAddress(scala.concurrent.duration.FiniteDuration timeout, scala.concurrent.duration.FiniteDuration startLoggingAfter) throws LeaderRetrievalException
LeaderRetrievalExceptionpublic void notifyLeaderAddress(String leaderAddress, UUID leaderSessionID)
LeaderRetrievalListenerLeaderRetrievalService when a new leader is elected.notifyLeaderAddress in interface LeaderRetrievalListenerleaderAddress - The address of the new leaderleaderSessionID - The new leader session IDpublic void handleError(Exception exception)
LeaderRetrievalListenerLeaderRetrievalService in case of an exception. This
assures that the LeaderRetrievalListener is aware of any problems occurring in the
LeaderRetrievalService thread.handleError in interface LeaderRetrievalListenerCopyright © 2014–2016 The Apache Software Foundation. All rights reserved.