ServicePartitionResolver.resolveAsync 方法
定义
重载
resolveAsync(ResolvedServicePartition previousRsp, Duration resolveTimeoutPerTry, Duration maxRetryBackoffInterval) |
Resolves a partition of the specified service.
|
resolveAsync(URI serviceName, ServicePartitionKey partitionKey, Duration resolveTimeoutPerTry, Duration maxRetryBackoffInterval) |
Resolves a partition of the specified service.
|
resolveAsync(ResolvedServicePartition previousRsp, Duration resolveTimeoutPerTry, Duration maxRetryBackoffInterval)
Resolves a partition of the specified service.
public CompletableFuture<ResolvedServicePartition> resolveAsync(ResolvedServicePartition previousRsp, Duration resolveTimeoutPerTry, Duration maxRetryBackoffInterval)
参数
- previousRsp
- ResolvedServicePartition
Previous resolved partition
- resolveTimeoutPerTry
- Duration
The timeout passed to FabricClient's
- maxRetryBackoffInterval
- Duration
The interval to back-off before retrying when FabricClient's method fails with a retriable exception.
返回
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(URI serviceName, ServicePartitionKey partitionKey, Duration resolveTimeoutPerTry, Duration maxRetryBackoffInterval)
Resolves a partition of the specified service.
public CompletableFuture<ResolvedServicePartition> resolveAsync(URI serviceName, ServicePartitionKey partitionKey, Duration resolveTimeoutPerTry, Duration maxRetryBackoffInterval)
参数
- serviceName
- URI
Uri of the service to resolve
- partitionKey
- ServicePartitionKey
Key that identifies the partition to resolve
- resolveTimeoutPerTry
- Duration
The timeout passed to FabricClient's
- maxRetryBackoffInterval
- Duration
The interval to back-off before retrying when FabricClient's method fails with a retriable exception.
返回
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.