public class LeaderRetrievalUtils extends Object
LeaderRetrievalService class.| Modifier and Type | Class and Description |
|---|---|
static class |
LeaderRetrievalUtils.LeaderConnectionInfoListener
Helper class which is used by the retrieveLeaderConnectionInfo method to retrieve the
leader's akka URL and the current leader session ID.
|
| Modifier and Type | Method and Description |
|---|---|
static InetAddress |
findConnectingAddress(LeaderRetrievalService leaderRetrievalService,
java.time.Duration timeout) |
static LeaderConnectionInfo |
retrieveLeaderConnectionInfo(LeaderRetrievalService leaderRetrievalService,
java.time.Duration timeout)
Retrieves the leader akka url and the current leader session ID.
|
public static LeaderConnectionInfo retrieveLeaderConnectionInfo(LeaderRetrievalService leaderRetrievalService, java.time.Duration timeout) throws LeaderRetrievalException
LeaderConnectionInfo instance.leaderRetrievalService - Leader retrieval service to retrieve the leader connection
informationtimeout - Timeout when to give up looking for the leaderLeaderRetrievalExceptionpublic static InetAddress findConnectingAddress(LeaderRetrievalService leaderRetrievalService, java.time.Duration timeout) throws LeaderRetrievalException
LeaderRetrievalExceptionCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.