Skip to content

Commit

Permalink
update scaladoc
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvanoosten committed Jan 26, 2025
1 parent 7d60a26 commit bf67d64
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions zio-kafka/src/main/scala/zio/kafka/consumer/Consumer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ object Consumer {
* - creating and closing the `KafkaConsumer`,
* - making sure `auto.commit` is disabled,
* - creating `access` as a fair semaphore with a single permit,
* - acquire a permit from `access` before using the consumer, and release if afterwards,
* - acquire a permit from `access` before using the consumer, and release it afterward,
* - not using the following consumer methods: `subscribe`, `unsubscribe`, `assign`, `poll`, `commit*`, `seek`,
* `pause`, `resume`, and `enforceRebalance`,
* - keeping the consumer config given to the java consumer in sync with the properties in `settings` (for example
Expand All @@ -245,7 +245,8 @@ object Consumer {
* @param access
* A Semaphore with 1 permit.
* @param diagnostics
* Optional diagnostics listener
* an optional callback for key events in the consumer life-cycle. The callbacks will be executed in a separate
* fiber. Since the events are queued, failure to handle these events leads to out of memory errors
*/
def fromJavaConsumerWithPermit(
javaConsumer: JConsumer[Array[Byte], Array[Byte]],
Expand Down

0 comments on commit bf67d64

Please sign in to comment.