Package com.mongodb.client.model
Class DropIndexOptions
- java.lang.Object
-
- com.mongodb.client.model.DropIndexOptions
-
public class DropIndexOptions extends Object
The options to apply to the command when dropping indexes.- Since:
- 3.6
- MongoDB documentation
- Drop indexes
-
-
Constructor Summary
Constructors Constructor Description DropIndexOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getMaxTimeβ(TimeUnit timeUnit)
Gets the maximum execution time on the server for this operation.DropIndexOptions
maxTimeβ(long maxTime, TimeUnit timeUnit)
Sets the maximum execution time on the server for this operation.String
toString()
-
-
-
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 DropIndexOptions 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
-
-