KafkaRest

interface KafkaRest

Docs: https://docs.confluent.io/platform/current/kafka-rest/

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
inline fun <T : Any> KafkaRest.consumeAndCommitRecords(group: ConsumerGroup, consumerInstance: ConsumerInstance, topic: Topic, recordFormat: RecordFormat, recordConsumer: RecordConsumer<T>): Result<List<Unit?>?, Any>

Process Records on a Topic using the passed RecordConsumer, and either commits the Offset after processing each.

Link copied to clipboard
abstract operator fun <R> invoke(action: KafkaRestV2Action<R>): Result<R, RemoteFailure>
abstract operator fun <R> invoke(action: KafkaRestV3Action<R>): Result<R, RemoteFailure>
Link copied to clipboard

Rewrites the partitions of messages using the passed Partitioner, after getting the list of partitions to write to

Link copied to clipboard

Rewrites the partitions of records using the passed Partitioner, after getting the list of partitions to write to