WriteConcern
final class WriteConcern implements Serializable (View source)
WriteConcern controls the acknowledgment of a write operation, specifies the level of write guarantee for Replica Sets.
Constants
MAJORITY |
Majority of all the members in the set; arbiters, non-voting members, passive members, hidden members and delayed members are all included in the definition of majority write concern. |
Methods
Construct immutable WriteConcern
No description
Returns the WriteConcern's "journal" option
Returns the WriteConcern's "w" option
Returns the WriteConcern's "wtimeout" option
Returns an object for BSON serialization
No description
Details
final
__construct(string|int $w, int|null $wtimeout = null, bool|null $journal = null)
Construct immutable WriteConcern
static
__set_state(array $properties)
No description
final bool|null
getJournal()
Returns the WriteConcern's "journal" option
final string|int|null
getW()
Returns the WriteConcern's "w" option
final int
getWtimeout()
Returns the WriteConcern's "wtimeout" option
final PackedArray
bsonSerialize()
Returns an object for BSON serialization
final bool
isDefault()
No description