@Beta(value=V4_9_0, warningText="Preview API - subject to change in non-backwards compatible way") public final class CosmosBulkItemResponse extends Object
CosmosItemOperation
request when processed using Bulk by calling
CosmosAsyncContainer.processBulkOperations(Flux, BulkProcessingOptions)
.Modifier and Type | Method and Description |
---|---|
String |
getActivityId()
Gets the activity ID that identifies the server request made to execute this operation.
|
CosmosDiagnostics |
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.
|
<T> T |
getItem(Class<T> type)
Gets the item associated with the current result.
|
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.
|
@Beta(value=V4_9_0, warningText="Preview API - subject to change in non-backwards compatible way") public String getActivityId()
@Beta(value=V4_9_0, warningText="Preview API - subject to change in non-backwards compatible way") public String getETag()
@Beta(value=V4_9_0, warningText="Preview API - subject to change in non-backwards compatible way") public double getRequestCharge()
For more information about the RU and factors that can impact the effective charges please visit Request Units in Azure Cosmos DB
@Beta(value=V4_9_0, warningText="Preview API - subject to change in non-backwards compatible way") public <T> T getItem(Class<T> type)
T
- the type parametertype
- class type for which deserialization is needed.@Beta(value=V4_9_0, warningText="Preview API - subject to change in non-backwards compatible way") public Duration getRetryAfterDuration()
@Beta(value=V4_9_0, warningText="Preview API - subject to change in non-backwards compatible way") public int getSubStatusCode()
@Beta(value=V4_9_0, warningText="Preview API - subject to change in non-backwards compatible way") public boolean isSuccessStatusCode()
true
if the current operation completed successfully; false
otherwise.@Beta(value=V4_9_0, warningText="Preview API - subject to change in non-backwards compatible way") public int getStatusCode()
@Beta(value=V4_9_0, warningText="Preview API - subject to change in non-backwards compatible way") public CosmosDiagnostics getCosmosDiagnostics()
CosmosDiagnostics
@Beta(value=V4_9_0, warningText="Preview API - subject to change in non-backwards compatible way") public String getSessionToken()
@Beta(value=V4_9_0, warningText="Preview API - subject to change in non-backwards compatible way") public Map<String,String> getResponseHeaders()
@Beta(value=V4_9_0, warningText="Preview API - subject to change in non-backwards compatible way") public Duration getDuration()
Copyright © 2021 Microsoft Corporation. All rights reserved.