Example #1
0
 private void LogMessageHandler(Kafka.IConsumer <TKey, TValue> consumer, LogMessage logMessage)
 {
     if (consumer.Equals(_consumer))
     {
         _events.OnNext(new Event.LogMessageReceived(logMessage));
     }
 }
Example #2
0
 private void OffsetsCommittedHandler(Kafka.IConsumer <TKey, TValue> consumer, CommittedOffsets committedOffsets)
 {
     if (consumer.Equals(_consumer))
     {
         _events.OnNext(new Event.OffsetsCommitted(committedOffsets));
     }
 }
Example #3
0
 private void StatisticsHandler(Kafka.IConsumer <TKey, TValue> consumer, string statistics)
 {
     if (consumer.Equals(_consumer))
     {
         _events.OnNext(new Event.StatisticsReceived(statistics));
     }
 }
Example #4
0
 private void PartitionsRevokedHandler(Kafka.IConsumer <TKey, TValue> consumer, List <TopicPartitionOffset> partitions)
 {
     if (consumer.Equals(_consumer))
     {
         _events.OnNext(new Event.PartitionsRevoked(partitions));
     }
 }