Class 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 Detail

      • DropIndexOptions

        public DropIndexOptions()
      • DropIndexOptions

        public DropIndexOptions​(JsonObject json)
    • Method Detail

      • 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)