Skip to content

Commit

Permalink
Add scaladoc
Browse files Browse the repository at this point in the history
  • Loading branch information
keirlawson committed Jun 15, 2021
1 parent a117de7 commit 36c2941
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions modules/core/src/main/scala/fs2/kafka/KafkaProducer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,33 @@ abstract class KafkaProducer[F[_], K, V] {
records: ProducerRecords[K, V, P]
): F[F[ProducerResult[K, V, P]]]

/**
* Produces the specified [[ProducerRecords]] without a passthrough value,
* see [[produce]] for general semantics.
*/
def produce_(records: ProducerRecords[K, V, _]): F[F[Chunk[(ProducerRecord[K, V], RecordMetadata)]]]

/**
* Produce a single [[ProducerRecord]], see [[produce]] for general semantics.
*/
def produceOne[P](record: ProducerRecord[K, V], passthrough: P): F[F[ProducerResult[K, V, P]]]

/**
* Produce a single record to the specified topic using the provided key and value,
* see [[produce]] for general semantics.
*/
def produceOne[P](topic: String, key: K, value: V, passthrough: P): F[F[ProducerResult[K, V, P]]]

/**
* Produce a single [[ProducerRecord]] without a passthrough value,
* see [[produce]] for general semantics.
*/
def produceOne_(producerRecord: ProducerRecord[K, V]): F[F[RecordMetadata]]

/**
* Produce a single record to the specified topic using the provided key and value
* without a passthrough value, see [[produce]] for general semantics.
*/
def produceOne_(topic: String, key: K, value: V): F[F[RecordMetadata]]
}

Expand Down

0 comments on commit 36c2941

Please sign in to comment.