Envelope

akka.kafka.ProducerMessage$.Envelope
sealed trait Envelope[K, V, +PassThrough]

Type accepted by Producer.committableSink and Producer.flexiFlow with implementations

The passThrough field may hold any element that is passed through the Producer.flexiFlow and included in the Results. That is useful when some context is needed to be passed on downstream operations. That could be done with unzip/zip, but this is more convenient. It can for example be a ConsumerMessage.CommittableOffset or ConsumerMessage.CommittableOffsetBatch that can be committed later in the flow.

Attributes

Source:
ProducerMessage.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Message[K, V, PassThrough]
class MultiMessage[K, V, PassThrough]
class PassThroughMessage[K, V, PassThrough]

Members list

Concise view

Value members

Abstract methods

def passThrough: PassThrough

Attributes

Source:
ProducerMessage.scala
def withPassThrough[PassThrough2](value: PassThrough2): Envelope[K, V, PassThrough2]

Attributes

Source:
ProducerMessage.scala