Package com.mongodb.client.model
Class EstimatedDocumentCountOptions
- java.lang.Object
-
- com.mongodb.client.model.EstimatedDocumentCountOptions
-
-
Constructor Summary
Constructors Constructor Description EstimatedDocumentCountOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetMaxTime(TimeUnit timeUnit)Gets the maximum execution time on the server for this operation.EstimatedDocumentCountOptionsmaxTime(long maxTime, TimeUnit timeUnit)Sets the maximum execution time on the server for this operation.StringtoString()
-
-
-
Method Detail
-
getMaxTime
public long getMaxTime(TimeUnit timeUnit)
Gets the maximum execution time on the server for this operation. The default is 0, which places no limit on the execution time.- Parameters:
timeUnit- the time unit to return the result in- Returns:
- the maximum execution time in the given time unit
-
maxTime
public EstimatedDocumentCountOptions maxTime(long maxTime, TimeUnit timeUnit)
Sets the maximum execution time on the server for this operation.- Parameters:
maxTime- the max timetimeUnit- the time unit, which may not be null- Returns:
- this
-
-