SendProducer

akka.kafka.javadsl.SendProducer
final class SendProducer[K, V]

Utility class for producing to Kafka without using Akka Streams.

Attributes

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

Members list

Concise view

Value members

Constructors

def this(settings: ProducerSettings[K, V], system: ClassicActorSystemProvider)

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 an ActorSystem's dispatcher).

Source:
SendProducer.scala

Concrete methods

def close(): CompletionStage[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
def send(record: ProducerRecord[K, V]): CompletionStage[RecordMetadata]

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]): CompletionStage[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