KafkaDrain
ox.kafka.KafkaDrain
object KafkaDrain
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
KafkaDrain.type
Members list
Value members
Concrete methods
def runPublish[K, V](settings: ProducerSettings[K, V])(using BufferCapacity): (Flow[ProducerRecord[K, V]]) => Unit
Attributes
- Returns
-
A drain, which sends all records emitted by the provided Flow.
def runPublish[K, V](producer: KafkaProducer[K, V], closeWhenComplete: Boolean)(using BufferCapacity): (Flow[ProducerRecord[K, V]]) => Unit
Attributes
- Returns
-
A drain, which sends all records emitted by the provided Flow.
def runPublishAndCommit[K, V](producerSettings: ProducerSettings[K, V])(using BufferCapacity): (Flow[SendPacket[K, V]]) => Unit
Attributes
- Returns
-
A drain, which consumes all packets emitted by the provided Flow. For each packet, first all
send
messages (producer records) are sent. Then, allcommit
messages (consumer records) up to their offsets are committed.
def runPublishAndCommit[K, V](producer: KafkaProducer[K, V], closeWhenComplete: Boolean)(using BufferCapacity): (Flow[SendPacket[K, V]]) => Unit
Value parameters
- producer
-
The producer that is used to send messages.
Attributes
- Returns
-
A drain, which consumes all packets emitted by the provided Flow. For each packet, first all
send
messages (producer records) are sent. Then, allcommit
messages (consumer records) up to their offsets are committed.
In this article