You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/12/09 05:02:33 UTC

[GitHub] [pulsar-client-go] labuladong commented on a diff in pull request #904: [feat] support for consumer event listener

labuladong commented on code in PR #904:
URL: https://github.com/apache/pulsar-client-go/pull/904#discussion_r1044091617


##########
pulsar/consumer_partition.go:
##########
@@ -112,6 +112,13 @@ type partitionConsumerOpts struct {
 	maxPendingChunkedMessage    int
 	expireTimeOfIncompleteChunk time.Duration
 	autoAckIncompleteChunk      bool
+	// int failover mode, this callback will be called when consumer change
+	consumerEventListener ConsumerEventListener
+}
+
+type ConsumerEventListener interface {
+	BecameActive(consumer Consumer, partition int32)

Review Comment:
   Hi @dfarr, thanks for your suggestion. I forgot that we cannot get topic name from `Consumer` in Go client.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org