tryGetAddresses
rx.Single<com.microsoft.azure.cosmosdb.internal.directconnectivity.AddressInformation[]> tryGetAddresses(com.microsoft.azure.cosmosdb.rx.internal.RxDocumentServiceRequest request,
com.microsoft.azure.cosmosdb.internal.routing.PartitionKeyRangeIdentity partitionKeyRangeIdentity,
boolean forceRefreshPartitionAddresses)
Resolves physical addresses by either PartitionKeyRangeIdentity.
- Parameters:
request - Request is needed only by GatewayAddressCache in the only case when request is name based and user has name based auth token.
PartitionkeyRangeIdentity can be used to locate auth token in this case.
partitionKeyRangeIdentity - target partition key range Id
forceRefreshPartitionAddresses - Whether addresses need to be refreshed as previously resolved addresses were determined to be outdated.
- Returns:
- Physical addresses.