@ThreadSafe public abstract class AbstractMasterClient extends AbstractClient
AbstractClient.RpcCallable<V>
mAddress, mClosed, mConnected, mProtocol, mServiceVersion
Constructor and Description |
---|
AbstractMasterClient(MasterClientConfig conf)
Creates a new master client base.
|
AbstractMasterClient(MasterClientConfig conf,
InetSocketAddress address,
java.util.function.Supplier<RetryPolicy> retryPolicySupplier)
Creates a new master client base.
|
Modifier and Type | Method and Description |
---|---|
InetSocketAddress |
getAddress() |
afterConnect, afterDisconnect, beforeDisconnect, checkVersion, close, connect, disconnect, getClient, getServiceName, getServiceVersion, isConnected, retryRPC, retryRPC
public AbstractMasterClient(MasterClientConfig conf)
conf
- master client configurationpublic AbstractMasterClient(MasterClientConfig conf, InetSocketAddress address, java.util.function.Supplier<RetryPolicy> retryPolicySupplier)
conf
- master client configurationaddress
- address to connect toretryPolicySupplier
- retry policy to usepublic InetSocketAddress getAddress() throws UnavailableException
getAddress
in interface Client
getAddress
in class AbstractClient
InetSocketAddress
of the remote,UnavailableException
- if the primary address cannot be determinedCopyright © 2023. All Rights Reserved.