ReplicationPolicy Class
- java.
lang. Object - Serializable
- JsonSerializable
- com.
microsoft. azure. documentdb. ReplicationPolicy
- com.
public class ReplicationPolicy extends JsonSerializable
Encapsulates the replication policy in the Azure Cosmos DB database service.
Constructor Summary
Constructor | Description |
---|---|
ReplicationPolicy(JSONObject jsonObject) |
Constructor. |
ReplicationPolicy(String jsonString) |
Constructor. |
Method Summary
Modifier and Type | Method and Description |
---|---|
int | getMaxReplicaSetSize() |
int | getMinReplicaSetSize() |
Inherited Members
JsonSerializable.get(String propertyName)
JsonSerializable.getBoolean(String propertyName)
JsonSerializable.getCollection(String propertyName)
JsonSerializable.getDouble(String propertyName)
JsonSerializable.getHashMap()
JsonSerializable.getInt(String propertyName)
JsonSerializable.getLogger()
JsonSerializable.getLong(String propertyName)
JsonSerializable.getMapper()
JsonSerializable.getObject(String propertyName)
JsonSerializable.getObjectByPath(Collection<String> propertyNames)
JsonSerializable.getString(String propertyName)
JsonSerializable.has(String propertyName)
JsonSerializable.JsonSerializable()
JsonSerializable.JsonSerializable(String jsonString, ObjectMapper objectMapper)
JsonSerializable.JsonSerializable(String jsonString)
JsonSerializable.JsonSerializable(JSONObject jsonObject)
JsonSerializable.remove(String propertyName)
JsonSerializable.toJson()
JsonSerializable.toJson(SerializationFormattingPolicy formattingPolicy)
JsonSerializable.toString()
JsonSerializable.toString(int indentFactor)
Constructor Details
ReplicationPolicy
public ReplicationPolicy(JSONObject jsonObject)
Constructor.
Parameters:
jsonObject
- the json object that represents the replication policy.
ReplicationPolicy
public ReplicationPolicy(String jsonString)
Constructor.
Parameters:
jsonString
- the json string that represents the replication policy.
Method Details
getMaxReplicaSetSize
public int getMaxReplicaSetSize()
getMinReplicaSetSize
public int getMinReplicaSetSize()
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java