All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.zeal18.zio.mongodb.driver.model.EstimatedDocumentCountOptions.scala Maven / Gradle / Ivy

package io.github.zeal18.zio.mongodb.driver.model

import com.mongodb.client.model.EstimatedDocumentCountOptions as JEstimatedDocumentCountOptions

import java.time.Duration

/** The options to apply to an estimated count operation.
  */
final case class EstimatedDocumentCountOptions(maxTime: Duration) {
  private[driver] def toJava: JEstimatedDocumentCountOptions =
    new JEstimatedDocumentCountOptions().maxTime(maxTime.toMillis(), java.util.concurrent.TimeUnit.MILLISECONDS)

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy