com.holonplatform.datastore.mongo.core

## Interface WriteConcernOption

- All Superinterfaces:
    com.holonplatform.core.datastore.DatastoreOperations.WriteOption

      public interface WriteConcernOption
      extends com.holonplatform.core.datastore.DatastoreOperations.WriteOption

  A Datastore `DatastoreOperations.WriteOption` to configure the MongoDB `WriteConcern` to use with a specific write operation.
  Since:
    5.2.0

- - ### Method Summary

    All Methods Static Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `static WriteConcernOption` | `create(com.mongodb.WriteConcern writeConcern)` Create a new `WriteConcernOption`.
    `com.mongodb.WriteConcern` | `getWriteConcern()` Get the MongoDB `WriteConcern` value.

- - ### Method Detail

    - #### getWriteConcern

          com.mongodb.WriteConcern getWriteConcern()

      Get the MongoDB `WriteConcern` value.
      Returns:
        the MongoDB `WriteConcern` value

    - #### create

          static WriteConcernOption create(com.mongodb.WriteConcern writeConcern)

      Create a new `WriteConcernOption`.
      Parameters:
        `writeConcern` - The MongoDB `WriteConcern` to use (not null)
      Returns:
        A new `WriteConcernOption` instance

Copyright © 2019 The Holon Platform. All rights reserved.