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 TypeMethodDescriptioncom.mongodb.WriteConcern
resolve
(MongoAction action) Resolve theWriteConcern
given theMongoAction
.
-
Method Details
-
resolve
Resolve theWriteConcern
given theMongoAction
.- Parameters:
action
- describes the context of the Mongo action. Contains a defaultWriteConcern
to use if one should not be resolved.- Returns:
- a
WriteConcern
based on the passed inMongoAction
value, maybe null.
-