@Beta(value=V4_7_0, warningText="Preview API - subject to change in non-backwards compatible way") public final class TransactionalBatchOperationResult extends Object
TransactionalBatch
request.Modifier and Type | Method and Description |
---|---|
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.
|
CosmosItemOperation |
getOperation()
Gets the original operation for this result.
|
double |
getRequestCharge()
Gets the request charge as request units (RU) consumed by the current operation.
|
Duration |
getRetryAfterDuration()
Gets retry after.
|
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_7_0, warningText="Preview API - subject to change in non-backwards compatible way") public String getETag()
@Beta(value=V4_7_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_7_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_7_0, warningText="Preview API - subject to change in non-backwards compatible way") public Duration getRetryAfterDuration()
@Beta(value=V4_7_0, warningText="Preview API - subject to change in non-backwards compatible way") public int getSubStatusCode()
@Beta(value=V4_7_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_7_0, warningText="Preview API - subject to change in non-backwards compatible way") public int getStatusCode()
@Beta(value=V4_7_0, warningText="Preview API - subject to change in non-backwards compatible way") public CosmosItemOperation getOperation()
Copyright © 2021 Microsoft Corporation. All rights reserved.