Package io.quarkus.mongodb.runtime
Class WriteConcernConfig
java.lang.Object
io.quarkus.mongodb.runtime.WriteConcernConfig
Configures the write concern.
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanConfigures the journal writing aspect.booleanIf set totrue, the driver will retry supported write operations if they fail due to a network error.booleanConfigures the safety.When set, the driver addsw: wValueto all write commands.When set, the driver addswtimeout : msto all write commands. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
safe
Configures the safety. If set totrue: the driver ensures that all writes are acknowledged by the MongoDB server, or else throws an exception. (see alsowandwtimeoutMS). If set fofalse: the driver does not ensure that all writes are acknowledged by the MongoDB server. -
journal
Configures the journal writing aspect. If set totrue: the driver waits for the server to group commit to the journal file on disk. If set tofalse: the driver does not wait for the server to group commit to the journal file on disk. -
w
When set, the driver addsw: wValueto all write commands. It requiressafeto betrue. The value is typically a number, but can also be themajoritystring. -
retryWrites
If set totrue, the driver will retry supported write operations if they fail due to a network error. -
wTimeout
When set, the driver addswtimeout : msto all write commands. It requiressafeto betrue.
-
-
Constructor Details
-
WriteConcernConfig
public WriteConcernConfig()
-