public interface LeaderRetrievalService
Prior to using this service it has to be started by calling the start method. The start method
also takes the LeaderRetrievalListener
as an argument. The service can only be started
once.
The service should be stopped by calling the stop method.
Modifier and Type | Method and Description |
---|---|
void |
start(LeaderRetrievalListener listener)
Starts the leader retrieval service with the given listener to listen for new leaders.
|
void |
stop()
Stops the leader retrieval service.
|
void start(LeaderRetrievalListener listener) throws Exception
listener
- The leader retrieval listener which will be notified about new leaders.Exception
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.