com.azure.cosmos.spark.WriteOnRetryCommitInterceptor.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-cosmos-spark_3-3_2-12 Show documentation
Show all versions of azure-cosmos-spark_3-3_2-12 Show documentation
OLTP Spark 3.3 Connector for Azure Cosmos DB SQL API
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.cosmos.spark
/**
* The CosmosClientInterceptor trait is used to allow spark environments to provide customizations of the
* Cosmos client configuration - for example to inject faults
*/
trait WriteOnRetryCommitInterceptor {
/**
* This method will be invoked by the Cosmos DB Spark connector before retrying a commit during writes (currently
* only when bulk mode is enabled).
*
* @return A function that will be invoked before retrying a commit on the write path.
*/
def beforeRetryCommit():Unit
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy