public static MongoExecution withMaxQueryTimeMS(int maxQueryTimeMS) { return new MongoExecution().addMaxQueryTimeMS(maxQueryTimeMS); }
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; }