KafkaStage

ox.kafka.KafkaStage
object KafkaStage

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
KafkaStage.type

Members list

Extensions

Extensions

extension [K, V](source: Source[ProducerRecord[K, V]])
def mapPublish(settings: ProducerSettings[K, V])(using StageCapacity, Ox): Source[RecordMetadata]
def mapPublish(producer: KafkaProducer[K, V], closeWhenComplete: Boolean)(using StageCapacity, Ox): Source[RecordMetadata]
extension [K, V](source: Source[SendPacket[K, V]])
def mapPublishAndCommit(producerSettings: ProducerSettings[K, V])(using StageCapacity, Ox): Source[RecordMetadata]

For each packet, first all messages (producer records) are sent. Then, all messages up to the offsets of the consumer messages are committed. The metadata of the published records is sent downstream.

For each packet, first all messages (producer records) are sent. Then, all messages up to the offsets of the consumer messages are committed. The metadata of the published records is sent downstream.

Attributes

def mapPublishAndCommit(producer: KafkaProducer[K, V], closeWhenComplete: Boolean)(using StageCapacity, Ox): Source[RecordMetadata]

For each packet, first all messages (producer records) are sent. Then, all messages up to the offsets of the consumer messages are committed. The metadata of the published records is sent downstream.

For each packet, first all messages (producer records) are sent. Then, all messages up to the offsets of the consumer messages are committed. The metadata of the published records is sent downstream.

Value parameters

producer

The producer that is used to send messages.

Attributes