w property
dynamic
w
final
Denotes the Write Concern level that takes the following values (int or String):
- -1 Disables all acknowledgment of write operations, and suppresses all errors, including network and socket errors.
- 0: Disables basic acknowledgment of write operations, but returns information about socket exceptions and networking errors to the application.
- 1: Provides acknowledgment of write operations on a standalone mongod or the primary in a replica set.
- A number greater than 1: Guarantees that write operations have propagated successfully to the specified number of replica set members including the primary.
- "majority": Confirms that write operations have propagated to the majority of configured replica set
- A tag set: Fine-grained control over which replica set members must acknowledge a write operation
Implementation
final dynamic w;