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

zio.kafka.admin.resource.ResourcePattern.scala Maven / Gradle / Ivy

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

import org.apache.kafka.common.resource.{ ResourcePattern => JResourcePattern }

final case class ResourcePattern(resourceType: ResourceType, name: String, patternType: PatternType) {
  def asJava: JResourcePattern = new JResourcePattern(resourceType.asJava, name, patternType.asJava)
}

object ResourcePattern {
  def apply(jResourcePattern: JResourcePattern): ResourcePattern =
    ResourcePattern(
      ResourceType(jResourcePattern.resourceType()),
      jResourcePattern.name(),
      PatternType(jResourcePattern.patternType())
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy