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

Struct Consumer

examples/consumer_load_aware/main.go:107–110  ·  view source on GitHub ↗

Consumer is a minimal ConsumerGroupHandler that also tracks an in-flight counter so it can report a meaningful load sample.

Source from the content-addressed store, hash-verified

105// Consumer is a minimal ConsumerGroupHandler that also tracks an in-flight
106// counter so it can report a meaningful load sample.
107type Consumer struct {
108 ready chan bool
109 inFlight atomic.Int64
110}
111
112// loadSample is invoked by LoadAwareSticky once per JoinGroup. In a real
113// deployment this would read /proc/stat, runtime.NumGoroutine, consumer lag,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected