public class SelectionPolicyAnyMaster extends AbstractMasterSelectionPolicy
MasterSelectionPolicy.Factory
mPrimaryMasterAddress
Modifier | Constructor and Description |
---|---|
protected |
SelectionPolicyAnyMaster() |
Modifier and Type | Method and Description |
---|---|
InetSocketAddress |
getGrpcMasterAddress(MasterInquireClient masterInquireClient)
Gets the master address the client makes gRPC request to.
|
getPrimaryMasterAddressCached, resetPrimaryMasterAddressCache
public InetSocketAddress getGrpcMasterAddress(MasterInquireClient masterInquireClient) throws UnavailableException
MasterSelectionPolicy
getGrpcMasterAddress
in interface MasterSelectionPolicy
getGrpcMasterAddress
in class AbstractMasterSelectionPolicy
masterInquireClient
- master inquire clientUnavailableException
- if address cannot be determinedCopyright © 2023. All Rights Reserved.