Esempio n. 1
0
            public override void OnPartitionsRevoked(IImmutableSet <TopicPartitionOffset> partitions)
            {
                var watch = Stopwatch.StartNew();

                _partitionEventHandler.OnRevoke(partitions, _restrictedConsumer);
                watch.Stop();
                CheckDuration(watch, "onRevoke");

                _actor._commitRefreshing.Revoke(partitions.Select(tp => tp.TopicPartition).ToImmutableHashSet());
                _actor._rebalanceInProgress = true;
            }
 /// <inheritdoc />
 public void OnRevoke(IImmutableSet <TopicPartitionOffset> revokedTopicPartitions, IRestrictedConsumer consumer)
 {
     _handler1?.OnRevoke(revokedTopicPartitions, consumer);
     _handler2?.OnRevoke(revokedTopicPartitions, consumer);
 }