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