1MongoDB::WriteConcern(3U)ser Contributed Perl DocumentatiMoonngoDB::WriteConcern(3)
2
3
4

NAME

6       MongoDB::WriteConcern - Encapsulate and validate a write concern
7

VERSION

9       version v2.0.3
10

SYNOPSIS

12           $rp = MongoDB::WriteConcern->new(); # w:1, wtimeout: 1000
13
14           $rp = MongoDB::WriteConcern->new(
15               w        => 'majority',
16               wtimeout => 10000, # milliseconds
17           );
18

DESCRIPTION

20       A write concern describes the guarantee that MongoDB provides when
21       reporting on the success of a write operation.
22
23       For core documentation on read preference see
24       <http://docs.mongodb.org/manual/core/read-preference/>.
25

ATTRIBUTES

27   w
28       Specifies the desired acknowledgement level. Defaults to '1'.
29
30   wtimeout
31       Specifies how long to wait for the write concern to be satisfied (in
32       milliseconds).  Defaults to 1000.
33
34   j
35       The j option confirms that the mongod instance has written the data to
36       the on-disk journal.  Defaults to false.
37
38       Note: specifying a write concern that set j to a true value may result
39       in an error with a mongod or mongos running with --nojournal option now
40       errors.
41

AUTHORS

43       ·   David Golden <david@mongodb.com>
44
45       ·   Rassi <rassi@mongodb.com>
46
47       ·   Mike Friedman <friedo@friedo.com>
48
49       ·   Kristina Chodorow <k.chodorow@gmail.com>
50
51       ·   Florian Ragwitz <rafl@debian.org>
52
54       This software is Copyright (c) 2019 by MongoDB, Inc.
55
56       This is free software, licensed under:
57
58         The Apache License, Version 2.0, January 2004
59
60
61
62perl v5.28.1                      2019-02-07          MongoDB::WriteConcern(3)
Impressum