org.http4k.connect.kafka.rest.extensions.NoOpPartitioner.kt Maven / Gradle / Ivy
package org.http4k.connect.kafka.rest.extensions
import org.http4k.connect.kafka.rest.model.PartitionId
/**
* Always selects no partition as a strategy
*/
fun NoOpPartitioner(@Suppress("UNUSED_PARAMETER") partitions: List) =
Partitioner { _: K, _: V ->
null
}