ConsumeClaim must start a consumer loop of ConsumerGroupClaim's Messages(). Once the Messages() channel is closed, the Handler must finish its processing loop and exit. Handlers should also return when ConsumerGroupSession.Context() is done; Messages() alone can block while the partition consumer is
(ConsumerGroupSession, ConsumerGroupClaim)
| 1245 | // is done; Messages() alone can block while the partition consumer is retrying |
| 1246 | // (e.g. after a broker disconnect). See examples/consumergroup. |
| 1247 | ConsumeClaim(ConsumerGroupSession, ConsumerGroupClaim) error |
| 1248 | } |
| 1249 | |
| 1250 | // ConsumerGroupClaim processes Kafka messages from a given topic and partition within a consumer group. |
no outgoing calls
no test coverage detected