Class EstimatedDocumentCountOptions


  • public class EstimatedDocumentCountOptions
    extends java.lang.Object
    The options an estimated count operation.
    Since:
    3.8
    MongoDB documentation
    Count
    • Constructor Detail

      • EstimatedDocumentCountOptions

        public EstimatedDocumentCountOptions()
      • EstimatedDocumentCountOptions

        public EstimatedDocumentCountOptions​(JsonObject json)
    • Method Detail

      • setMaxTime

        public EstimatedDocumentCountOptions 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)