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

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

The newest version!
package zio.kafka.admin.acl

import zio._
import org.apache.kafka.clients.admin.{ CreateAclsOptions => JCreateAclOptions }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy