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