public class AddressResolver extends Object implements IAddressResolver
RxDocumentServiceRequest
AddressCache internally maintains CollectionCache, CollectionRoutingMapCache and BackendAddressCache. Logic in this class mainly joins these 3 caches and deals with potential staleness of the caches.
| Constructor and Description |
|---|
AddressResolver() |
| Modifier and Type | Method and Description |
|---|---|
void |
initializeCaches(com.microsoft.azure.cosmosdb.rx.internal.caches.RxCollectionCache collectionCache,
com.microsoft.azure.cosmosdb.rx.internal.ICollectionRoutingMapCache collectionRoutingMapCache,
IAddressCache addressCache) |
rx.Single<com.microsoft.azure.cosmosdb.internal.directconnectivity.AddressInformation[]> |
resolveAsync(com.microsoft.azure.cosmosdb.rx.internal.RxDocumentServiceRequest request,
boolean forceRefreshPartitionAddresses) |
public void initializeCaches(com.microsoft.azure.cosmosdb.rx.internal.caches.RxCollectionCache collectionCache, com.microsoft.azure.cosmosdb.rx.internal.ICollectionRoutingMapCache collectionRoutingMapCache, IAddressCache addressCache)
public rx.Single<com.microsoft.azure.cosmosdb.internal.directconnectivity.AddressInformation[]> resolveAsync(com.microsoft.azure.cosmosdb.rx.internal.RxDocumentServiceRequest request, boolean forceRefreshPartitionAddresses)
resolveAsync in interface IAddressResolverCopyright © 2021. All rights reserved.