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

zio.kafka.admin.acl.DeleteAclOptions.scala Maven / Gradle / Ivy

There is a newer version: 2.9.0
Show newest version
package zio.kafka.admin.acl

import zio._
import org.apache.kafka.clients.admin.{ DeleteAclsOptions => JDeleteAclsOptions }

final case class DeleteAclsOptions(timeout: Option[Duration]) {
  def asJava: JDeleteAclsOptions = {
    val jopts = new JDeleteAclsOptions()

    timeout.fold(jopts)(timeout => jopts.timeoutMs(timeout.toMillis.toInt))
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy