Exemplo n.º 1
0
        public IOffsetsWatermark GetWatermarkOffsets(XXXTopicPartition offsets)
        {
            Console.WriteLine("GetWatermarkOffsets...");
            var wm = this.consumer.GetWatermarkOffsets(Util.TopicPartition(offsets));

            return(new OffsetsWatermark(wm.High, wm.Low));
        }
Exemplo n.º 2
0
        public IOffsetsWatermark QueryWatermarkOffsets(XXXTopicPartition offsets, TimeSpan timeout)
        {
            var wm = this.consumer.QueryWatermarkOffsets(Util.TopicPartition(offsets), timeout);

            Console.WriteLine("GetWatermarkOffsets...");
            return(new OffsetsWatermark(wm.High, wm.Low));
        }
Exemplo n.º 3
0
 public long Position(XXXTopicPartition offsets)
 {
     Console.WriteLine("Position...");
     return(this.consumer.Position(Util.TopicPartition(offsets)).Value);
 }
Exemplo n.º 4
0
 public IOffsetsWatermark QueryWatermarkOffsets(XXXTopicPartition topicPartition, TimeSpan timeout)
 {
     return(this.consumerClient.QueryWatermarkOffsets(topicPartition, timeout));
 }
Exemplo n.º 5
0
 public IOffsetsWatermark GetWatermarkOffsets(XXXTopicPartition topicPartition)
 {
     return(this.consumerClient.GetWatermarkOffsets(topicPartition));
 }
Exemplo n.º 6
0
 public long GetPosition(XXXTopicPartition topicPartition)
 {
     return(this.consumerClient.Position(topicPartition));
 }
Exemplo n.º 7
0
 public XXXTopicPartitionOffset(XXXTopicPartition tp, long offset)
 {
     this.TopicPartition = tp;
     this.Offset         = offset;
 }
Exemplo n.º 8
0
 public XXXTopicPartitionTimestamp(XXXTopicPartition tp, long timestamp)
 {
     this.Timestamp      = timestamp;
     this.TopicPartition = tp;
 }