<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->

<phpdoc:classref xml:id="class.mongodb-driver-writeconcern" xmlns:phpdoc="http://php.net/ns/phpdoc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">

 <title>The MongoDB\Driver\WriteConcern class</title>
 <titleabbrev>MongoDB\Driver\WriteConcern</titleabbrev>

 <partintro>

<!-- {{{ MongoDB\Driver\WriteConcern intro -->
  <section xml:id="mongodb-driver-writeconcern.intro">
   &reftitle.intro;
   <para>
    <classname>MongoDB\Driver\WriteConcern</classname> describes the level of
    acknowledgement requested from MongoDB for write operations to a standalone
    <literal>mongod</literal> or to replica sets or to sharded clusters. In
    sharded clusters, <literal>mongos</literal> instances will pass the write
    concern on to the shards.
   </para>
  </section>
<!-- }}} -->

  <section xml:id="mongodb-driver-writeconcern.synopsis">
   &reftitle.classsynopsis;

<!-- {{{ Synopsis -->
   <classsynopsis>
    <ooclass><classname>MongoDB\Driver\WriteConcern</classname></ooclass>

<!-- {{{ Class synopsis -->
    <classsynopsisinfo>
     <modifier>final</modifier>
     <ooclass>
      <classname>MongoDB\Driver\WriteConcern</classname>
     </ooclass>

     <oointerface>
      <interfacename>MongoDB\BSON\Serializable</interfacename>
     </oointerface>

     <oointerface>
      <interfacename>Serializable</interfacename>
     </oointerface>
    </classsynopsisinfo>
<!-- }}} -->
    <classsynopsisinfo role="comment">&Constants;</classsynopsisinfo>
    <fieldsynopsis>
     <modifier>const</modifier>
     <type>string</type>
     <varname linkend="mongodb-driver-writeconcern.constants.majority">MongoDB\Driver\WriteConcern::MAJORITY</varname>
     <initializer>"majority"</initializer>
    </fieldsynopsis>

    <classsynopsisinfo role="comment">&Methods;</classsynopsisinfo>
    <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.mongodb-driver-writeconcern')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[not(@role='procedural')])" />
   </classsynopsis>
<!-- }}} -->

  </section>

<!-- {{{ MongoDB\Driver\WriteConcern constants -->
  <section xml:id="mongodb-driver-writeconcern.constants">
   &reftitle.constants;
   <variablelist>

    <varlistentry xml:id="mongodb-driver-writeconcern.constants.majority">
     <term><constant>MongoDB\Driver\WriteConcern::MAJORITY</constant></term>
     <listitem>
      <para>
       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.
      </para>
     </listitem>
    </varlistentry>

   </variablelist>
  </section>
<!-- }}} -->

  <section role="changelog">
   &reftitle.changelog;
   <para>
    <informaltable>
     <tgroup cols="2">
      <thead>
       <row>
        <entry>&Version;</entry>
        <entry>&Description;</entry>
       </row>
      </thead>
      <tbody>
       <row>
        <entry>PECL mongodb 1.7.0</entry>
        <entry>
         Implements <interfacename>Serializable</interfacename>.
        </entry>
       </row>
       <row>
        <entry>PECL mongodb 1.2.0</entry>
        <entry>
         Implements <interfacename>MongoDB\BSON\Serializable</interfacename>.
        </entry>
       </row>
      </tbody>
     </tgroup>
    </informaltable>
   </para>
  </section>

 </partintro>

 &reference.mongodb.mongodb.driver.entities.writeconcern;

</phpdoc:classref>

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
