KafkaDrain

ox.kafka.KafkaDrain
object KafkaDrain

Attributes

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

Members list

Value members

Concrete methods

def publish[K, V](settings: ProducerSettings[K, V]): Source[ProducerRecord[K, V]] => Unit
def publish[K, V](producer: KafkaProducer[K, V], closeWhenComplete: Boolean): Source[ProducerRecord[K, V]] => Unit
def publishAndCommit[K, V](producerSettings: ProducerSettings[K, V]): Source[SendPacket[K, V]] => Unit

Attributes

Returns

A drain, which consumes all packets from the provided Source.. For each packet, first all send messages (producer records) are sent. Then, all commit messages (consumer records) up to their offsets are committed.

def publishAndCommit[K, V](producer: KafkaProducer[K, V], closeWhenComplete: Boolean): Source[SendPacket[K, V]] => Unit

Value parameters

producer

The producer that is used to send messages.

Attributes

Returns

A drain, which consumes all packets from the provided Source.. For each packet, first all send messages (producer records) are sent. Then, all commit messages (consumer records) up to their offsets are committed.