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

Method SetNotifier

mockbroker.go:113–117  ·  view source on GitHub ↗

SetNotifier set a function that will get invoked whenever a request has been processed successfully and will provide the number of bytes read and written

(notifier RequestNotifierFunc)

Source from the content-addressed store, hash-verified

111// SetNotifier set a function that will get invoked whenever a request has been
112// processed successfully and will provide the number of bytes read and written
113func (b *MockBroker) SetNotifier(notifier RequestNotifierFunc) {
114 b.lock.Lock()
115 b.notifier = notifier
116 b.lock.Unlock()
117}
118
119// BrokerID returns broker ID assigned to the broker.
120func (b *MockBroker) BrokerID() int32 {

Callers 1

Calls

no outgoing calls

Tested by 1