Package com.azure.data.cosmos.sync
Class CosmosSyncResponse
- java.lang.Object
-
- com.azure.data.cosmos.sync.CosmosSyncResponse
-
- Direct Known Subclasses:
CosmosSyncContainerResponse
,CosmosSyncDatabaseResponse
,CosmosSyncItemResponse
,CosmosSyncStoredProcedureResponse
,CosmosSyncTriggerResponse
,CosmosSyncUserDefinedFunctionResponse
,CosmosSyncUserResponse
public class CosmosSyncResponse extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
activityId()
Gets the Activity ID for the request.CosmosResponseDiagnostics
cosmosResponseDiagnosticsString()
Gets the diagnostics information for the current request to Azure Cosmos DB service.String
currentResourceQuotaUsage()
Gets the current size of this entity (in megabytes (MB) for server resources and in count for master resources)String
maxResourceQuota()
Gets the maximum size limit for this entity (in megabytes (MB) for server resources and in count for master resources).double
requestCharge()
Gets the number of index paths (terms) generated by the operation.Duration
requestLatency()
Gets the end-to-end request latency for the current request to Azure Cosmos DB service.Map<String,String>
responseHeaders()
Gets the headers associated with the response.String
sessionToken()
Gets the token used for managing client's consistency requirements.int
statusCode()
Gets the HTTP status code associated with the response.
-
-
-
Method Detail
-
maxResourceQuota
public String maxResourceQuota()
Gets the maximum size limit for this entity (in megabytes (MB) for server resources and in count for master resources).- Returns:
- the max resource quota.
-
currentResourceQuotaUsage
public String currentResourceQuotaUsage()
Gets the current size of this entity (in megabytes (MB) for server resources and in count for master resources)- Returns:
- the current resource quota usage.
-
activityId
public String activityId()
Gets the Activity ID for the request.- Returns:
- the activity id.
-
requestCharge
public double requestCharge()
Gets the number of index paths (terms) generated by the operation.- Returns:
- the request charge.
-
statusCode
public int statusCode()
Gets the HTTP status code associated with the response.- Returns:
- the status code.
-
sessionToken
public String sessionToken()
Gets the token used for managing client's consistency requirements.- Returns:
- the session token.
-
responseHeaders
public Map<String,String> responseHeaders()
Gets the headers associated with the response.- Returns:
- the response headers.
-
cosmosResponseDiagnosticsString
public CosmosResponseDiagnostics cosmosResponseDiagnosticsString()
Gets the diagnostics information for the current request to Azure Cosmos DB service.- Returns:
- diagnostics information for the current request to Azure Cosmos DB service.
-
requestLatency
public Duration requestLatency()
Gets the end-to-end request latency for the current request to Azure Cosmos DB service.- Returns:
- end-to-end request latency for the current request to Azure Cosmos DB service.
-
-