你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
CommunicationClientFactory<TCommunicationClient> Interface
Type Parameters
- TCommunicationClient
public interface CommunicationClientFactory
Defines the interface that must be implemented to provide a factory for communication clients to talk to a service fabric service.
Method Summary
Modifier and Type | Method and Description |
---|---|
CompletableFuture<TCommunicationClient> |
getClientAsync(ResolvedServicePartition previousRsp, TargetReplicaSelector targetReplicaSelector, String listenerName, OperationRetrySettings retrySettings)
Re-resolves a partition of the specified service containing one or more communication listeners and returns a client to communicate to the endpoint corresponding to the given listenerName. The endpoint of the service is of the form - {"Endpoints":{"Listener1":"Endpoint1","Listener2":"Endpoint2" ...}} |
CompletableFuture<TCommunicationClient> |
getClientAsync(URI serviceUri, ServicePartitionKey partitionKey, TargetReplicaSelector targetReplicaSelector, String listenerName, OperationRetrySettings retrySettings)
Resolves a partition of the specified service containing one or more communication listeners and returns a client to communicate to the endpoint corresponding to the given listenerName. The endpoint of the service is of the form - {"Endpoints":{"Listener1":"Endpoint1","Listener2":"Endpoint2" ...}} |
CompletableFuture<Operation |
reportOperationExceptionAsync(TCommunicationClient client, ExceptionInformation exceptionInformation, OperationRetrySettings retrySettings)
Handles the exceptions that occur in the CommunicationClient when sending a message to the Service |
Method Details
getClientAsync
public CompletableFuture
Re-resolves a partition of the specified service containing one or more communication listeners and returns a client to communicate to the endpoint corresponding to the given listenerName. The endpoint of the service is of the form - {"Endpoints":{"Listener1":"Endpoint1","Listener2":"Endpoint2" ...}}
Parameters:
Returns:
getClientAsync
public CompletableFuture
Resolves a partition of the specified service containing one or more communication listeners and returns a client to communicate to the endpoint corresponding to the given listenerName. The endpoint of the service is of the form - {"Endpoints":{"Listener1":"Endpoint1","Listener2":"Endpoint2" ...}}
Parameters:
Returns:
reportOperationExceptionAsync
public CompletableFuture
Handles the exceptions that occur in the CommunicationClient when sending a message to the Service
Parameters:
Returns: