Constructor | Description |
---|---|
EstimatedDocumentCountOptions() |
Modifier and Type | Method | Description |
---|---|---|
long |
getMaxTime(TimeUnit timeUnit) |
Gets the maximum execution time on the server for this operation.
|
EstimatedDocumentCountOptions |
maxTime(long maxTime,
TimeUnit timeUnit) |
Sets the maximum execution time on the server for this operation.
|
String |
toString() |
public long getMaxTime(TimeUnit timeUnit)
timeUnit
- the time unit to return the result inpublic EstimatedDocumentCountOptions maxTime(long maxTime, TimeUnit timeUnit)
maxTime
- the max timetimeUnit
- the time unit, which may not be null