Skip to content

Commit

Permalink
close class in docs (#852)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdelamo authored Aug 31, 2023
1 parent bac377e commit 454b8fc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/docs/guide/kafkaListener/kafkaListenerBatch.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ To achieve this you can set the `batch` member of the ann:configuration.kafka.an

.Receiving a Batch of Records

snippet::io.micronaut.kafka.docs.consumer.batch.BookListener[tags="imports,clazz,method", indent=0]
snippet::io.micronaut.kafka.docs.consumer.batch.BookListener[tags="imports,clazz,method,endclazz", indent=0]

<1> The ann:configuration.kafka.annotation.KafkaListener[] annotation's `batch` member is set to `true`
<2> The method defines that it receives a list of `Book` instances
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,6 @@ class BookListener {
}
}
// end::manual[]
//tag::endclazz[]
}
//end::endclazz[]
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,6 @@ class BookListener {
}
}
// end::manual[]
//tag::endclazz[]
}
//end::endclazz[]
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,6 @@ public void receive(List<ConsumerRecord<String, Book>> records, Consumer kafkaCo
}
}
// end::manual[]
//tag::endclazz[]
}
//end::endclazz[]

0 comments on commit 454b8fc

Please sign in to comment.