Пример #1
0
        /// <summary>
        /// Flushes messages and stop accepting new ones.
        /// </summary>
        public async Task Stop()
        {
            _messages.Complete();
            await _messages.Completion;

            _batchStrategy.Dispose();
        }
Пример #2
0
        public async Task Stop()
        {
            _innerActor.Complete();
            await _innerActor.Completion;

            _fetchBatchStrategy.Dispose();
            _offsetBatchStrategy.Dispose();
        }
Пример #3
0
        public async Task Stop()
        {
            _innerActor.Complete();
            await _innerActor.Completion;

            _fetchBatchStrategy.Dispose();
            _offsetBatchStrategy.Dispose();
            if (_consumerGroup != null)
            {
                await CommitAll();

                await _consumerGroup.LeaveGroup();

                _heartbeatTimer.Dispose();
                if (_commitTimer != null)
                {
                    _commitTimer.Dispose();
                }
            }
        }