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

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

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

import org.apache.kafka.common.acl.{ AclBinding => JAclBinding }
import zio.kafka.admin.resource.ResourcePattern

final case class AclBinding(pattern: ResourcePattern, entry: AccessControlEntry) {
  def asJava: JAclBinding = new JAclBinding(pattern.asJava, entry.asJava)
}

object AclBinding {
  def apply(jAclBinding: JAclBinding): AclBinding =
    AclBinding(pattern = ResourcePattern(jAclBinding.pattern()), entry = AccessControlEntry(jAclBinding.entry()))
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy