Interface WriteConcernResolver


public interface WriteConcernResolver
A strategy interface to determine the WriteConcern to use for a given MongoAction. Return the passed in default WriteConcern (a property on MongoAction) if no determination can be made.
Author:
Mark Pollack, Oliver Gierke
  • Method Summary

    Modifier and Type
    Method
    Description
    com.mongodb.WriteConcern
    Resolve the WriteConcern given the MongoAction.
  • Method Details

    • resolve

      @Nullable com.mongodb.WriteConcern resolve(MongoAction action)
      Resolve the WriteConcern given the MongoAction.
      Parameters:
      action - describes the context of the Mongo action. Contains a default WriteConcern to use if one should not be resolved.
      Returns:
      a WriteConcern based on the passed in MongoAction value, maybe null.