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<ResolvedServicePartition> resolveAsync(ResolvedServicePartition previousRsp, Duration resolveTimeoutPerTry, Duration maxRetryBackoffInterval)

Resolves a partition of the specified service.

CompletableFuture<ResolvedServicePartition> resolveAsync(URI serviceName, ServicePartitionKey partitionKey, Duration resolveTimeoutPerTry, Duration maxRetryBackoffInterval)

Resolves a partition of the specified service.

Method Details

resolveAsync

public CompletableFuture resolveAsync(ResolvedServicePartition previousRsp, Duration resolveTimeoutPerTry, Duration maxRetryBackoffInterval)

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 resolveAsync(URI serviceName, ServicePartitionKey partitionKey, Duration resolveTimeoutPerTry, Duration maxRetryBackoffInterval)

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