ServicePartitionClient<TCommunicationClient> Interface
Type Parameters
- TCommunicationClient
public interface ServicePartitionClient
Specifies an instance of the communication client that can communicate with the replicas of a particular partition.
Method Summary
Modifier and Type | Method and Description |
---|---|
Communication |
getCommunicationClientFactory()
Gets the communication client factory |
Resolved |
getLastResolvedServicePartition()
Gets the resolved service partition that was set on the client. |
String |
getListenerName()
Gets the name of the listener in the replica to which the client should connect to. |
Service |
getPartitionKey()
Gets the key of the partition the client is communicating with. |
URI |
getServiceUri()
Gets the name of the service |
Target |
getTargetReplicaSelector()
Gets the information about which replica in the partition the client should connect to. |
Method Details
getCommunicationClientFactory
public CommunicationClientFactory
Gets the communication client factory
Returns:
getLastResolvedServicePartition
public ResolvedServicePartition getLastResolvedServicePartition()
Gets the resolved service partition that was set on the client.
Returns:
getListenerName
public String getListenerName()
Gets the name of the listener in the replica to which the client should connect to.
Returns:
getPartitionKey
public ServicePartitionKey getPartitionKey()
Gets the key of the partition the client is communicating with.
Returns:
getServiceUri
public URI getServiceUri()
Gets the name of the service
Returns:
getTargetReplicaSelector
public TargetReplicaSelector getTargetReplicaSelector()
Gets the information about which replica in the partition the client should connect to.
Returns:
Applies to
Azure SDK for Java