Module spring.data.mongodb
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.WriteConcernresolve(MongoAction action) Resolve theWriteConcerngiven theMongoAction.
-
Method Details
-
resolve
Resolve theWriteConcerngiven theMongoAction.- Parameters:
action- describes the context of the Mongo action. Contains a defaultWriteConcernto use if one should not be resolved.- Returns:
- a
WriteConcernbased on the passed inMongoActionvalue, maybe null.
-