SendProducer
Utility class for producing to Kafka without using Akka Streams.
Attributes
- Source:
- SendProducer.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Members list
Value members
Constructors
Utility class for producing to Kafka without using Akka Streams.
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 The internal asynchronous operations run on the provided
Executor
(which may be anActorSystem
's dispatcher).- Source:
- SendProducer.scala
Concrete methods
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
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:
-
Message publishes a single message to its topic, and completes the future with Result
-
MultiMessage publishes all messages in its
records
field, and completes the future with MultiResult -
PassThroughMessage does not publish anything, and completes the future with PassThroughResult
The messages support passing through arbitrary data.
Attributes
- Source:
- SendProducer.scala
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