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)
| 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 |
| 113 | func (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. |
| 120 | func (b *MockBroker) BrokerID() int32 { |
no outgoing calls