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


##########
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, topicName string, partition int32)

Review Comment:
   Nice!



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to