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

io.github.zeal18.zio.mongodb.driver.indexes.DropIndexOptions.scala Maven / Gradle / Ivy

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

import com.mongodb.client.model.DropIndexOptions as JDropIndexOptions

import java.time.Duration
import java.util.concurrent.TimeUnit

/** The options to apply to the command when dropping indexes.
  *
  * @see [[https://www.mongodb.com/docs/manual/reference/command/dropIndexes/ Drop Indexes]]
  */
final case class DropIndexOptions(maxTime: Duration) {
  private[driver] def toJava: JDropIndexOptions =
    new JDropIndexOptions().maxTime(maxTime.toMillis, TimeUnit.MILLISECONDS)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy