public class CreateIndexOptions extends Object
Constructor | Description |
---|---|
CreateIndexOptions() |
Modifier and Type | Method | Description |
---|---|---|
long |
getMaxTime(TimeUnit timeUnit) |
Gets the maximum execution time on the server for this operation.
|
CreateIndexOptions |
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 CreateIndexOptions maxTime(long maxTime, TimeUnit timeUnit)
maxTime
- the max timetimeUnit
- the time unit, which may not be null