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

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

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

import org.apache.kafka.clients.admin.{ DescribeAclsOptions => JDescribeAclsOptions }
import zio._

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy