CosmosBatchOperationResult Class
- java.
lang. Object - com.
azure. cosmos. models. CosmosBatchOperationResult
- com.
public final class CosmosBatchOperationResult
Represents a result for a specific operation that was part of a CosmosBatch request.
Modifier and Type | Method and Description |
---|---|
String |
get Gets the entity tag associated with the current item. |
T |
get Gets the item associated with the current result. |
Cosmos |
get Gets the original operation for this result. |
double |
get Gets the request charge as request units (RU) consumed by the current operation. |
Duration |
get Gets retry after. |
int |
get Gets the HTTP status code associated with the current result. |
int |
get Gets sub status code associated with the current result. |
boolean |
is Gets a value indicating whether the current operation completed successfully. |
Methods inherited from java.lang.Object
getETag
public String getETag()
Gets the entity tag associated with the current item. ETags are used for concurrency checking when updating resources.
Returns:
getItem
public T
Gets the item associated with the current result.
Parameters:
Returns:
getOperation
public CosmosItemOperation getOperation()
Gets the original operation for this result.
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:
getRetryAfterDuration
public Duration getRetryAfterDuration()
Gets retry after.
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.