All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.cosmos.implementation.DocumentClientRetryPolicy Maven / Gradle / Ivy

Go to download

This Package contains Microsoft Azure Cosmos SDK (with Reactive Extension Reactor support) for Azure Cosmos DB SQL API

There is a newer version: 4.61.1
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.cosmos.implementation;

/**
 * While this class is public, but it is not part of our published public APIs.
 * This is meant to be internally used only by our sdk.
 */
public abstract class DocumentClientRetryPolicy implements IRetryPolicy {

    // TODO: this is just a place holder for now. As .Net has this method.
    // I have to spend more time figure out what's the right pattern for this (if method needed)

    /// 
    /// Method that is called before a request is sent to allow the retry policy implementation
    /// to modify the state of the request.
    /// 
    /// The request being sent to the service.
    /// 
    /// Currently only read operations will invoke this method. There is no scenario for write
    /// operations to modify requests before retrying.
    /// 

    // TODO: I need to investigate what's the right contract here and/or if/how this is useful
    public abstract void onBeforeSendRequest(RxDocumentServiceRequest request);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy