Package io.vertx.mongo.client.model
Class EstimatedDocumentCountOptions
- java.lang.Object
-
- io.vertx.mongo.client.model.EstimatedDocumentCountOptions
-
public class EstimatedDocumentCountOptions extends java.lang.Object
The options an estimated count operation.- Since:
- 3.8
- MongoDB documentation
- Count
-
-
Constructor Summary
Constructors Constructor Description EstimatedDocumentCountOptions()
EstimatedDocumentCountOptions(JsonObject json)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Long
getMaxTime()
Gets the maximum execution time on the server for this operation.EstimatedDocumentCountOptions
setMaxTime(java.lang.Long maxTime)
Sets the maximum execution time on the server for this operation.JsonObject
toJson()
-
-
-
Constructor Detail
-
EstimatedDocumentCountOptions
public EstimatedDocumentCountOptions()
-
EstimatedDocumentCountOptions
public EstimatedDocumentCountOptions(JsonObject json)
-
-
Method Detail
-
toJson
public JsonObject toJson()
-
setMaxTime
public EstimatedDocumentCountOptions setMaxTime(java.lang.Long maxTime)
Sets the maximum execution time on the server for this operation.- Parameters:
maxTime
- the max time (in milliseconds)- Returns:
- this
-
getMaxTime
public java.lang.Long getMaxTime()
Gets the maximum execution time on the server for this operation. The default is 0, which places no limit on the execution time.- Returns:
- the maximum execution time (in milliseconds)
-
-