Class CreateIndexOptions


  • public class CreateIndexOptions
    extends java.lang.Object
    • Constructor Detail

      • CreateIndexOptions

        public CreateIndexOptions()
      • CreateIndexOptions

        public CreateIndexOptions​(JsonObject json)
    • Method Detail

      • 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