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(org.json.JSONObject jsonObject)
Initialize a conflict object from json 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.
|
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 Conflict(org.json.JSONObject jsonObject)
jsonObject
- the json object that represents the conflict.Copyright © 2018. All rights reserved.