MCPcopy
hub / github.com/IBM/sarama / triggerRedispatch

Method triggerRedispatch

consumer.go:503–516  ·  view source on GitHub ↗

triggerRedispatch queues a redispatch signal unless one is already pending. If the child is shutting down, the signal is ignored.

()

Source from the content-addressed store, hash-verified

501// triggerRedispatch queues a redispatch signal unless one is already pending.
502// If the child is shutting down, the signal is ignored.
503func (child *partitionConsumer) triggerRedispatch() {
504 select {
505 case <-child.dispatcherStop:
506 return
507 case <-child.dying:
508 return
509 default:
510 }
511
512 select {
513 case child.trigger <- none{}:
514 default:
515 }
516}
517
518func (child *partitionConsumer) stopDispatcher() {
519 child.dispatcherStopOnce.Do(func() {

Callers 5

notifyErrorMethod · 0.95
dispatcherMethod · 0.95
responseFeederMethod · 0.95
handleResponsesMethod · 0.80

Calls

no outgoing calls