SendProducer

akka.kafka.scaladsl.SendProducer
See theSendProducer companion object
final class SendProducer[K, V]

Utility class for producing to Kafka without using Akka Streams.

Attributes

settings

producer settings used to create or access the org.apache.kafka.clients.producer.Producer

Companion:
object
Source:
SendProducer.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def close(): Future[Done]

Close the underlying producer (depending on the "close producer on stop" setting).

Close the underlying producer (depending on the "close producer on stop" setting).

Attributes

Source:
SendProducer.scala

Send a raw Kafka org.apache.kafka.clients.producer.ProducerRecord and complete a future with the resulting metadata.

Send a raw Kafka org.apache.kafka.clients.producer.ProducerRecord and complete a future with the resulting metadata.

Attributes

Source:
SendProducer.scala
def sendEnvelope[PT](envelope: Envelope[K, V, PT]): Future[Results[K, V, PT]]

Send records to Kafka topics and complete a future with the result.

Send records to Kafka topics and complete a future with the result.

It publishes records to Kafka topics conditionally:

The messages support passing through arbitrary data.

Attributes

Source:
SendProducer.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns:

a string representation of the object.

Definition Classes
Any
Source:
SendProducer.scala

Concrete fields

Attributes

Source:
SendProducer.scala