You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/src/main/scala/org/apache/pekko/kafka/javadsl/Producer.scala
-169Lines changed: 0 additions & 169 deletions
Original file line number
Diff line number
Diff line change
@@ -45,78 +45,6 @@ object Producer {
45
45
.mapMaterializedValue(_.asJava)
46
46
.asJava
47
47
48
-
/**
49
-
* Create a sink for publishing records to Kafka topics.
50
-
*
51
-
* The [[org.apache.kafka.clients.producer.ProducerRecord Kafka ProducerRecord]] contains the topic name to which the record is being sent, an optional
52
-
* partition number, and an optional key and value.
53
-
*
54
-
* Supports sharing a Kafka Producer instance.
55
-
*
56
-
* @deprecated Pass in external or shared producer using `ProducerSettings.withProducerFactory` or `ProducerSettings.withProducer`, since Alpakka Kafka 2.0.0
* Create a flow to publish records to Kafka topics and then pass it on.
169
-
*
170
-
* The records must be wrapped in a [[pekko.kafka.ProducerMessage.Message Message]] and continue in the stream as [[pekko.kafka.ProducerMessage.Result Result]].
171
-
*
172
-
* The messages support the possibility to pass through arbitrary data, which can for example be a [[ConsumerMessage.CommittableOffset CommittableOffset]]
173
-
* or [[ConsumerMessage.CommittableOffsetBatch CommittableOffsetBatch]] that can
* Create a flow to publish records to Kafka topics and then pass it on.
235
-
*
236
-
* The records must be wrapped in a [[pekko.kafka.ProducerMessage.Message Message]] and continue in the stream as [[pekko.kafka.ProducerMessage.Result Result]].
237
-
*
238
-
* The messages support the possibility to pass through arbitrary data, which can for example be a [[ConsumerMessage.CommittableOffset CommittableOffset]]
239
-
* or [[ConsumerMessage.CommittableOffsetBatch CommittableOffsetBatch]] that can
* Create a flow to conditionally publish records to Kafka topics and then pass it on.
255
-
*
256
-
* It publishes records to Kafka topics conditionally:
257
-
*
258
-
* - [[pekko.kafka.ProducerMessage.Message Message]] publishes a single message to its topic, and continues in the stream as [[pekko.kafka.ProducerMessage.Result Result]]
259
-
*
260
-
* - [[pekko.kafka.ProducerMessage.MultiMessage MultiMessage]] publishes all messages in its `records` field, and continues in the stream as [[pekko.kafka.ProducerMessage.MultiResult MultiResult]]
261
-
*
262
-
* - [[pekko.kafka.ProducerMessage.PassThroughMessage PassThroughMessage]] does not publish anything, and continues in the stream as [[pekko.kafka.ProducerMessage.PassThroughResult PassThroughResult]]
263
-
*
264
-
* The messages support the possibility to pass through arbitrary data, which can for example be a [[ConsumerMessage.CommittableOffset CommittableOffset]]
265
-
* or [[ConsumerMessage.CommittableOffsetBatch CommittableOffsetBatch]] that can
266
-
* be committed later in the flow.
267
-
*
268
-
* Supports sharing a Kafka Producer instance.
269
-
*
270
-
* @deprecated Pass in external or shared producer using `ProducerSettings.withProducerFactory` or `ProducerSettings.withProducer`, since Alpakka Kafka 2.0.0
* Create a flow to conditionally publish records to Kafka topics and then pass it on.
283
-
*
284
-
* It publishes records to Kafka topics conditionally:
285
-
*
286
-
* - [[pekko.kafka.ProducerMessage.Message Message]] publishes a single message to its topic, and continues in the stream as [[pekko.kafka.ProducerMessage.Result Result]]
287
-
*
288
-
* - [[pekko.kafka.ProducerMessage.MultiMessage MultiMessage]] publishes all messages in its `records` field, and continues in the stream as [[pekko.kafka.ProducerMessage.MultiResult MultiResult]]
289
-
*
290
-
* - [[pekko.kafka.ProducerMessage.PassThroughMessage PassThroughMessage]] does not publish anything, and continues in the stream as [[pekko.kafka.ProducerMessage.PassThroughResult PassThroughResult]]
291
-
*
292
-
* This flow is intended to be used with Apache Pekko's [flow with context](https://pekko.apache.org/docs/pekko/current/stream/operators/Flow/asFlowWithContext.html).
293
-
*
294
-
* Supports sharing a Kafka Producer instance.
295
-
*
296
-
* @tparamC the flow context type
297
-
*
298
-
* @deprecated Pass in external or shared producer using `ProducerSettings.withProducerFactory` or `ProducerSettings.withProducer`, since Alpakka Kafka 2.0.0
0 commit comments