你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
CosmosBulkItemResponse Class
- java.
lang. Object - com.
azure. cosmos. models. CosmosBulkItemResponse
- com.
public final class CosmosBulkItemResponse
Response of a CosmosItemOperation request when processed using Bulk by calling executeBulkOperations(Flux<CosmosItemOperation> operations, CosmosBulkExecutionOptions bulkOptions).
Method Summary
Modifier and Type | Method and Description |
---|---|
T |
getItem(Class<T> type)
Gets the item associated with the current result. |
String |
getActivityId()
Gets the activity ID that identifies the server request made to execute this operation. |
Cosmos |
getCosmosDiagnostics()
Gets the cosmos diagnostic for this operation. |
Duration |
getDuration()
Gets the end-to-end request latency for the current request to Azure Cosmos DB service. |
String |
getETag()
Gets the entity tag associated with the current item. |
double |
getRequestCharge()
Gets the request charge as request units (RU) consumed by the current operation. |
Map<String,String> |
getResponseHeaders()
Gets the headers associated with the response. |
Duration |
getRetryAfterDuration()
Gets retry after. |
String |
getSessionToken()
Gets the token used for managing client's consistency requirements. |
int |
getStatusCode()
Gets the HTTP status code associated with the current result. |
int |
getSubStatusCode()
Gets sub status code associated with the current result. |
boolean |
isSuccessStatusCode()
Gets a value indicating whether the current operation completed successfully. |
Methods inherited from java.lang.Object
Method Details
getItem
public T
Gets the item associated with the current result.
Parameters:
Returns:
getActivityId
public String getActivityId()
Gets the activity ID that identifies the server request made to execute this operation.
Returns:
getCosmosDiagnostics
public CosmosDiagnostics getCosmosDiagnostics()
Gets the cosmos diagnostic for this operation.
Returns:
getDuration
public Duration getDuration()
Gets the end-to-end request latency for the current request to Azure Cosmos DB service.
Returns:
getETag
public String getETag()
Gets the entity tag associated with the current item. ETags are used for concurrency checking when updating resources.
Returns:
getRequestCharge
public double getRequestCharge()
Gets the request charge as request units (RU) consumed by the current operation.
For more information about the RU and factors that can impact the effective charges please visit Request Units in Azure Cosmos DB
Returns:
getResponseHeaders
public Map
Gets the headers associated with the response.
Returns:
getRetryAfterDuration
public Duration getRetryAfterDuration()
Gets retry after.
Returns:
getSessionToken
public String getSessionToken()
Gets the token used for managing client's consistency requirements.
Returns:
getStatusCode
public int getStatusCode()
Gets the HTTP status code associated with the current result.
Returns:
getSubStatusCode
public int getSubStatusCode()
Gets sub status code associated with the current result.
Returns:
isSuccessStatusCode
public boolean isSuccessStatusCode()
Gets a value indicating whether the current operation completed successfully.
Returns:
true
if the current operation completed successfully; false
otherwise.