com.microsoft.azure.documentdb.internal.routing.RoutingMapProvider Maven / Gradle / Ivy
package com.microsoft.azure.documentdb.internal.routing;
import java.util.Collection;
import com.microsoft.azure.documentdb.PartitionKeyRange;
/**
* Used internally in request routing in the Azure Cosmos DB database service.
*/
public interface RoutingMapProvider {
Collection getOverlappingRanges(String collectionSelfLink, Range range, boolean forceRefresh);
PartitionKeyRange tryGetRangeByEffectivePartitionKey(String collectionSelfLink, String effectivePartitionKey);
PartitionKeyRange getPartitionKeyRangeById(String collectionSelfLink, String partitionKeyRangeId, boolean forceRefresh);
}