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

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