Conflict Class
- java.
lang. Object - com.
microsoft. azure. documentdb. JsonSerializable - com.
microsoft. azure. documentdb. Resource - com.
microsoft. azure. documentdb. Conflict
- com.
- com.
- com.
public final class Conflict
extends Resource
Represents a conflict in the version of a particular resource in the Azure Cosmos DB database service.
During rare failure scenarios, conflicts are generated for the documents in transit. Clients can inspect the respective conflict instances for resources and operations in conflict.
Constructor Summary
Constructor | Description |
---|---|
Conflict() |
Initialize a conflict object. |
Conflict(String jsonString) |
Initialize a conflict object from json string. |
Conflict(JSONObject jsonObject) |
Initialize a conflict object from json object. |
Method Summary
Modifier and Type | Method and Description |
---|---|
T |
getResource(Class<T> resourceClass)
Gets the conflicting resource in the Azure Cosmos DB service. |
Operation |
getOperationKind()
Gets the operation kind. |
java.lang.String |
getResourceType()
Gets the type of the conflicting resource. |
java.lang.String |
getSourceResourceId()
Gets the ID associated with the resource. |
Methods inherited from JsonSerializable
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
Conflict
public Conflict()
Initialize a conflict object.
Conflict
public Conflict(String jsonString)
Initialize a conflict object from json string.
Parameters:
Conflict
public Conflict(JSONObject jsonObject)
Initialize a conflict object from json object.
Parameters:
Method Details
getResource
public T
Gets the conflicting resource in the Azure Cosmos DB service.
Parameters:
Returns:
getOperationKind
public OperationKind getOperationKind()
Gets the operation kind.
Returns:
getResourceType
public String getResourceType()
Gets the type of the conflicting resource.
Returns:
getSourceResourceId
public String getSourceResourceId()
Gets the ID associated with the resource.
Returns: