public interface LeaderRetrievalDriverFactory
LeaderRetrievalDriver
with different implementation.Modifier and Type | Method and Description |
---|---|
LeaderRetrievalDriver |
createLeaderRetrievalDriver(LeaderRetrievalEventHandler leaderEventHandler,
FatalErrorHandler fatalErrorHandler)
Create a specific
LeaderRetrievalDriver and start the necessary services. |
LeaderRetrievalDriver createLeaderRetrievalDriver(LeaderRetrievalEventHandler leaderEventHandler, FatalErrorHandler fatalErrorHandler) throws Exception
LeaderRetrievalDriver
and start the necessary services. For example, NodeCache
in Zookeeper, ConfigMap watcher in Kubernetes. They could get the leader information change events and need to
notify the leader listener by LeaderRetrievalEventHandler
.leaderEventHandler
- handler for the leader retrieval driver to notify leader change events.fatalErrorHandler
- fatal error handlerException
- when create a specific LeaderRetrievalDriver
implementation and start the necessary
services.Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.