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에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for Java