| 接口 | 说明 |
|---|---|
| LeaderRetrievalDriver |
A
LeaderRetrievalDriver is responsible for retrieves the current leader which has been
elected by the LeaderElectionDriver. |
| LeaderRetrievalDriverFactory |
Factory for creating
LeaderRetrievalDriver with different implementation. |
| LeaderRetrievalEventHandler |
Interface which should be implemented to notify to
LeaderInformation changes in LeaderRetrievalDriver. |
| LeaderRetrievalListener |
Classes which want to be notified about a changing leader by the
LeaderRetrievalService
have to implement this interface. |
| LeaderRetrievalService |
This interface has to be implemented by a service which retrieves the current leader and notifies
a listener about it.
|
| 类 | 说明 |
|---|---|
| DefaultLeaderRetrievalService |
The counterpart to the
DefaultLeaderElectionService. |
| StandaloneLeaderRetrievalService |
Standalone implementation of the
LeaderRetrievalService. |
| ZooKeeperLeaderRetrievalDriver |
The counterpart to the
ZooKeeperLeaderElectionDriver. |
| ZooKeeperLeaderRetrievalDriverFactory |
LeaderRetrievalDriverFactory implementation for Zookeeper. |
| 枚举 | 说明 |
|---|---|
| ZooKeeperLeaderRetrievalDriver.LeaderInformationClearancePolicy |
Policy when to clear the leader information and to notify the listener about it.
|
| 异常错误 | 说明 |
|---|---|
| LeaderRetrievalException |
This exception is thrown by the
LeaderRetrievalUtils when
the method retrieveLeaderGateway fails to retrieve the current leader's gateway. |
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.