Package oracle.nosql.driver.ops
Class AddReplicaRequest
java.lang.Object
oracle.nosql.driver.ops.Request
oracle.nosql.driver.ops.AddReplicaRequest
Cloud service only.
 AddReplicaRequest is used to add new replica (region) to a table.
- Since:
- 5.4.13
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionoracle.nosql.driver.ops.serde.SerializercreateDeserializer(oracle.nosql.driver.ops.serde.SerializerFactory factory) oracle.nosql.driver.ops.serde.SerializercreateSerializer(oracle.nosql.driver.ops.serde.SerializerFactory factory) intReturns the read units set for the replica table or 0 if not setReturns the replica name.Returns the type name of the request.intReturns the write units set for the replica table or 0 if not setsetCompartment(String compartment) Sets the name or id of a compartment to be used for this operation.setDefaults(NoSQLHandleConfig config) setReadUnits(int readUnits) Sets the read units for the replica table.setReplicaName(String replicaName) Sets the replica name (region) to be addedsetTableName(String tableName) Sets the table name to replicatesetTimeout(int timeoutMs) Sets the request timeout value, in milliseconds.setWriteUnits(int writeUnits) Sets the write units for the replica table.voidvalidate()Methods inherited from class oracle.nosql.driver.ops.RequestgetCompartment, getNamespace, getRateLimitDelayedMs, getReadRateLimiter, getRetryStats, getTableName, getWriteRateLimiter, setReadRateLimiter, setWriteRateLimiter
- 
Constructor Details- 
AddReplicaRequestpublic AddReplicaRequest()
 
- 
- 
Method Details- 
setTableNameSets the table name to replicate- Parameters:
- tableName- the name
- Returns:
- this
 
- 
setReplicaNameSets the replica name (region) to be added- Parameters:
- replicaName- the name of the replica
- Returns:
- this
 
- 
getReplicaNameReturns the replica name. This is the region name- Returns:
- the replica name
 
- 
setReadUnitsSets the read units for the replica table. This defaults to the units on the existing table- Parameters:
- readUnits- the read units
- Returns:
- this
 
- 
getReadUnitspublic int getReadUnits()Returns the read units set for the replica table or 0 if not set- Returns:
- the read units
 
- 
setWriteUnitsSets the write units for the replica table. This defaults to the units on the existing table- Parameters:
- writeUnits- the write units
- Returns:
- this
 
- 
getWriteUnitspublic int getWriteUnits()Returns the write units set for the replica table or 0 if not set- Returns:
- the write units
 
- 
setCompartmentSets the name or id of a compartment to be used for this operation. The compartment may be specified as either a name (or path for nested compartments) or as an id (OCID). A name (vs id) can only be used when authenticated using a specific user identity. It is not available if authenticated as an Instance Principal which can be done when calling the service from a compute instance in the Oracle Cloud Infrastructure. See SignatureProvider.createWithInstancePrincipal()- Parameters:
- compartment- the name or id. If using a nested compartment, specify the full compartment path- compartmentA.compartmentB, but exclude the name of the root compartment (tenant).
- Returns:
- this
 
- 
setTimeoutSets the request timeout value, in milliseconds. This overrides any default value set inNoSQLHandleConfig. The value must be positive.- Parameters:
- timeoutMs- the timeout value, in milliseconds
- Returns:
- this
- Throws:
- IllegalArgumentException- if the timeout value is less than or equal to 0
 
- 
setDefaults
- 
validatepublic void validate()
- 
createSerializerpublic oracle.nosql.driver.ops.serde.Serializer createSerializer(oracle.nosql.driver.ops.serde.SerializerFactory factory) 
- 
createDeserializerpublic oracle.nosql.driver.ops.serde.Serializer createDeserializer(oracle.nosql.driver.ops.serde.SerializerFactory factory) 
- 
getTypeNameDescription copied from class:RequestReturns the type name of the request. This is used for stats.- Specified by:
- getTypeNamein class- Request
- Returns:
- the type name of the request
 
 
-