FabricTransportServiceRemotingClientFactory Class
- java.
lang. Object - CommunicationClientFactory<TCommunicationClient>
- ServiceRemotingClientFactory
- microsoft.
servicefabric. services. remoting. fabrictransport. client. FabricTransportServiceRemotingClientFactory
- microsoft.
public class FabricTransportServiceRemotingClientFactory implements ServiceRemotingClientFactory
An ServiceRemotingClientFactory that uses Fabric TCP transport to create ServiceRemotingClient that communicate with stateless and stateful services over interfaces that are remoted via FabricTransportServiceRemotingListener.
Constructor Summary
Constructor | Description |
---|---|
FabricTransportServiceRemotingClientFactory(FabricTransportRemotingSettings fabricTransportSettings, ServiceRemotingCallbackClient callbackClient, ServicePartitionResolver servicePartitionResolver, List<ExceptionHandler> exceptionHandlers, String traceId) |
Constructs a fabric transport based service remoting client factory.
Remarks:This factory uses an internal fabric transport exception handler to handle exceptions at the fabric TCP transport level and a ServiceRemotingExceptionHandler, in addition to the exception handlers supplied to the constructor. |
Method Summary
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Service |
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<Service |
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(ServiceRemotingClient client, ExceptionInformation exceptionInformation, OperationRetrySettings retrySettings)
Handles the exceptions that occur in the CommunicationClient when sending a message to the Service |
Inherited Members
Constructor Details
FabricTransportServiceRemotingClientFactory
public FabricTransportServiceRemotingClientFactory(FabricTransportRemotingSettings fabricTransportSettings, ServiceRemotingCallbackClient callbackClient, ServicePartitionResolver servicePartitionResolver, List
Constructs a fabric transport based service remoting client factory.
Remarks:This factory uses an internal fabric transport exception handler to handle exceptions at the fabric TCP transport level and a ServiceRemotingExceptionHandler, in addition to the exception handlers supplied to the constructor.
Parameters:
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" ...}}
Overrides:
FabricTransportServiceRemotingClientFactory.getClientAsync(ResolvedServicePartition previousRsp, TargetReplicaSelector targetReplicaSelector, String listenerName, OperationRetrySettings retrySettings)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" ...}}
Overrides:
FabricTransportServiceRemotingClientFactory.getClientAsync(URI serviceUri, ServicePartitionKey partitionKey, TargetReplicaSelector targetReplicaSelector, String listenerName, OperationRetrySettings retrySettings)Parameters:
Returns:
reportOperationExceptionAsync
public CompletableFuture
Handles the exceptions that occur in the CommunicationClient when sending a message to the Service
Parameters:
Returns:
Applies to
Azure SDK for Java