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


##########
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:
   Because a consumer can subscribe to multiple topics, is it possible for a 
consumer event listener to know which topic this callback invocation 
corresponds to?



-- 
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