ServicePartitionResolver Interface
public interface ServicePartitionResolver
Implements the class that helps in determining the endpoint of a service.
Method Summary
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Resolved |
resolveAsync(ResolvedServicePartition previousRsp, Duration resolveTimeoutPerTry, Duration maxRetryBackoffInterval)
Resolves a partition of the specified service. |
CompletableFuture<Resolved |
resolveAsync(URI serviceName, ServicePartitionKey partitionKey, Duration resolveTimeoutPerTry, Duration maxRetryBackoffInterval)
Resolves a partition of the specified service. |
Method Details
resolveAsync
public CompletableFuture
Resolves a partition of the specified service.
Parameters:
previousRsp
- Previous resolved partition
resolveTimeoutPerTry
- The timeout passed to FabricClient's
maxRetryBackoffInterval
- The interval to back-off before retrying when FabricClient's method fails with a retriable exception.
Returns:
A CompletableFuture that represents outstanding operation. The result from the Task is the ResolvedServicePartition object, that contains the information about the resolved service partition including the service endpoints.
resolveAsync
public CompletableFuture
Resolves a partition of the specified service.
Parameters:
serviceName
- Uri of the service to resolve
partitionKey
- Key that identifies the partition to resolve
resolveTimeoutPerTry
- The timeout passed to FabricClient's
maxRetryBackoffInterval
- The interval to back-off before retrying when FabricClient's method fails with a retriable exception.
Returns:
A CompletableFuture that represents outstanding operation. The result from the Task is the ResolvedServicePartition object, that contains the information about the resolved service partition including the service endpoints.
Applies to
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Azure SDK for Java