public void Unassign()
        {
            var offsets = this.Committed(TimeSpan.FromSeconds(1));

            Assignment.Clear();
            Listener?.PartitionsRevoked(this, offsets);
        }
Beispiel #2
0
 public void Unassign()
 {
     Assignment.Clear();
     foreach (var kp in offsets)
     {
         kp.Value.OffsetConsumed = kp.Value.OffsetCommitted;
     }
 }
 public void Close()
 {
     Assignment.Clear();
     Subscription.Clear();
 }
 public void Close()
 {
     cluster.CloseConsumer(Name);
     Assignment.Clear();
     Subscription.Clear();
 }
 public void PartitionsAssigned(List <TopicPartition> partitions)
 {
     Assignment.Clear();
     Assignment.AddRange(partitions);
 }
 public void Unassign()
 {
     cluster.Unassign(this);
     Assignment.Clear();
 }
 public void Unsubscribe()
 {
     cluster.Unsubscribe(this);
     Subscription.Clear();
     Assignment.Clear();
 }
Beispiel #8
0
 public void Close()
 {
     MockCluster.Instance.CloseConsumer(this.Name);
     Assignment.Clear();
     Subscription.Clear();
 }
Beispiel #9
0
 public void Unassign()
 {
     MockCluster.Instance.Unassign(this);
     Assignment.Clear();
 }