|
@ -30,6 +30,7 @@ type TopicSubscriber struct { |
|
|
SubscriberConfig *SubscriberConfiguration |
|
|
SubscriberConfig *SubscriberConfiguration |
|
|
ContentConfig *ContentConfiguration |
|
|
ContentConfig *ContentConfiguration |
|
|
brokerPartitionAssignmentChan chan *mq_pb.SubscriberToSubCoordinatorResponse |
|
|
brokerPartitionAssignmentChan chan *mq_pb.SubscriberToSubCoordinatorResponse |
|
|
|
|
|
brokerPartitionAssignmentAckChan chan *mq_pb.SubscriberToSubCoordinatorRequest |
|
|
OnEachMessageFunc OnEachMessageFunc |
|
|
OnEachMessageFunc OnEachMessageFunc |
|
|
OnCompletionFunc OnCompletionFunc |
|
|
OnCompletionFunc OnCompletionFunc |
|
|
bootstrapBrokers []string |
|
|
bootstrapBrokers []string |
|
@ -43,6 +44,7 @@ func NewTopicSubscriber(bootstrapBrokers []string, subscriber *SubscriberConfigu |
|
|
SubscriberConfig: subscriber, |
|
|
SubscriberConfig: subscriber, |
|
|
ContentConfig: content, |
|
|
ContentConfig: content, |
|
|
brokerPartitionAssignmentChan: make(chan *mq_pb.SubscriberToSubCoordinatorResponse, 1024), |
|
|
brokerPartitionAssignmentChan: make(chan *mq_pb.SubscriberToSubCoordinatorResponse, 1024), |
|
|
|
|
|
brokerPartitionAssignmentAckChan: make(chan *mq_pb.SubscriberToSubCoordinatorRequest, 1024), |
|
|
bootstrapBrokers: bootstrapBrokers, |
|
|
bootstrapBrokers: bootstrapBrokers, |
|
|
waitForMoreMessage: true, |
|
|
waitForMoreMessage: true, |
|
|
activeProcessors: make(map[topic.Partition]*ProcessorState), |
|
|
activeProcessors: make(map[topic.Partition]*ProcessorState), |
|
|