Package io.vertx.mongo.client.model
Class CreateIndexOptions
- java.lang.Object
-
- io.vertx.mongo.client.model.CreateIndexOptions
-
public class CreateIndexOptions extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CreateIndexOptions()
CreateIndexOptions(JsonObject json)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateIndexCommitQuorum
getCommitQuorum()
Gets the create index commit quorum for this operation.java.lang.Long
getMaxTime()
Gets the maximum execution time on the server for this operation.CreateIndexOptions
setCommitQuorum(CreateIndexCommitQuorum commitQuorum)
Sets the create index commit quorum for this operation.CreateIndexOptions
setMaxTime(java.lang.Long maxTime)
Sets the maximum execution time on the server for this operation.JsonObject
toJson()
-
-
-
Constructor Detail
-
CreateIndexOptions
public CreateIndexOptions()
-
CreateIndexOptions
public CreateIndexOptions(JsonObject json)
-
-
Method Detail
-
toJson
public JsonObject toJson()
-
setMaxTime
public CreateIndexOptions 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)
-
setCommitQuorum
public CreateIndexOptions setCommitQuorum(CreateIndexCommitQuorum commitQuorum)
Sets the create index commit quorum for this operation.- Parameters:
commitQuorum
- the create index commit quorum- Returns:
- this
- Since:
- 4.1
- Since server release
- 4.4
-
getCommitQuorum
public CreateIndexCommitQuorum getCommitQuorum()
Gets the create index commit quorum for this operation.- Returns:
- the create index commit quorum
- Since:
- 4.1
- Since server release
- 4.4
-
-