Package io.vertx.mongo.client.model
Class DropIndexOptions
- java.lang.Object
-
- io.vertx.mongo.client.model.DropIndexOptions
-
public class DropIndexOptions extends java.lang.Object
The options to apply to the command when dropping indexes.- Since:
- 3.6
- MongoDB documentation
- Drop indexes
-
-
Constructor Summary
Constructors Constructor Description DropIndexOptions()
DropIndexOptions(JsonObject json)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Long
getMaxTime()
Gets the maximum execution time on the server for this operation.DropIndexOptions
setMaxTime(java.lang.Long maxTime)
Sets the maximum execution time on the server for this operation.JsonObject
toJson()
-
-
-
Constructor Detail
-
DropIndexOptions
public DropIndexOptions()
-
DropIndexOptions
public DropIndexOptions(JsonObject json)
-
-
Method Detail
-
toJson
public JsonObject toJson()
-
setMaxTime
public DropIndexOptions setMaxTime(java.lang.Long maxTime)
Sets the maximum execution time on the server for this operation.- Parameters:
maxTime
- the max time (in milliseconds)- Returns:
- this
-
getMaxTime
public java.lang.Long getMaxTime()
Gets the maximum execution time on the server for this operation. The default is 0, which places no limit on the execution time.- Returns:
- the maximum execution time (in milliseconds)
-
-