public final class Conflict extends Resource
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 and Description |
---|
Conflict()
Initialize a conflict object.
|
Conflict(String jsonString)
Initialize a conflict object from json string.
|
Modifier and Type | Method and Description |
---|---|
String |
getOperationKind()
Gets the operation kind.
|
String |
getResouceType()
Gets the type of the conflicting resource.
|
<T extends Resource> |
getResource(Class<T> klass)
Gets the conflicting resource in the Azure Cosmos DB service.
|
String |
getSourceResourceId()
Gets the resource ID for the conflict in the Azure Cosmos DB service.
|
getETag, getId, getResourceId, getSelfLink, getTimestamp, setId, setResourceId
get, getBoolean, getCollection, getCollection, getDouble, getHashMap, getInt, getLogger, getLong, getMapper, getObject, getObject, getObjectByPath, getString, has, remove, set, toJson, toJson, toObject, toString
public Conflict()
public Conflict(String jsonString)
jsonString
- the json string that represents the conflict.public String getOperationKind()
public String getResouceType()
public String getSourceResourceId()
Copyright © 2018. All rights reserved.