ReplicaSetName
- Last Updated: September 20, 2021
- 1 minute read
- DataDirect Connectors
- JDBC
- MongoDB 6.1
- Documentation
Purpose
Specifies the name of the replica set against which the driver executes write operations. Providing a value for this property enables replica set failover for write operations.
Valid Values
replica_set_name
where:
replica_set_name
is the name of the replica set against which the driver performs write operations.
Notes
- When a value is specified for this option, the driver attempts to establish a connection to the primary node when a write operation is executed. If the primary node is unavailable, the driver repeats the discovery process until it finds the newly elected one or until the maximum number of retry attempts is met.
Data Source Methods
public String getReplicaSetName()
public void setReplicaSetName(String)
Default Value
No default value
Data Type
String