/** * Use @{link {@link MongoExecution#withWriteConcern(WriteConcern)} instead. * */ @Deprecated public static MongoExecution withWriteConcern(String writeConcern) { return new MongoExecution().addWriteConcern(writeConcern); }
public static MongoExecution withWriteConcern(WriteConcern writeConcern) { return new MongoExecution().addWriteConcern(writeConcern); }
public Execution getExecution() { if (execution == null) { MongoExecution mongoExecution = new MongoExecution(); if (getReadPreference() != null) { mongoExecution.addReadPreference(getReadPreference()); execution = mongoExecution; } if (getWriteConcern() != null) { mongoExecution.addWriteConcern(getWriteConcern()); execution = mongoExecution; } if (getMaxQueryTimeMS() != null) { mongoExecution.addMaxQueryTimeMS(getMaxQueryTimeMS()); execution = mongoExecution; } } return execution; }