ResponseDiagnosticsProcessor Interface

public interface ResponseDiagnosticsProcessor

Interface for processing cosmosDB response

Method Summary

Modifier and Type Method and Description
abstract void processResponseDiagnostics(ResponseDiagnostics responseDiagnostics)

Gets called after receiving response from CosmosDb.

Method Details

processResponseDiagnostics

public abstract void processResponseDiagnostics(ResponseDiagnostics responseDiagnostics)

Gets called after receiving response from CosmosDb. Response Diagnostics are collected from API responses and then set in ResponseDiagnostics object.

In case of missing diagnostics from CosmosDb, responseDiagnostics will be null.

NOTE: Since processResponseDiagnostics() API will get called in every cosmos spring data implementation API to capture the diagnostics details, it is highly recommended to not have any long running / CPU intensive work in the implementation of this API.

Parameters:

responseDiagnostics - responseDiagnostics object containing CosmosDb response diagnostics information

Applies to