Interface WriteConcernAware

All Known Subinterfaces:
MongoTransactionOptions

public interface WriteConcernAware
Interface indicating a component that contains and exposes an WriteConcern.
Since:
4.3
Author:
Christoph Strobl
  • Method Summary

    Modifier and Type
    Method
    Description
    com.mongodb.WriteConcern
     
    default boolean
     
  • Method Details

    • getWriteConcern

      @Nullable com.mongodb.WriteConcern getWriteConcern()
      Returns:
      the WriteConcern to apply or null if none set.
    • hasWriteConcern

      default boolean hasWriteConcern()
      Returns:
      true if a WriteConcern is set.