Exemplo n.º 1
0
        /// <summary>
        /// Flushes messages and stop accepting new ones.
        /// </summary>
        public async Task Stop()
        {
            _messages.Complete();
            await _messages.Completion;

            _batchStrategy.Dispose();
        }
Exemplo n.º 2
0
        public async Task Stop()
        {
            _innerActor.Complete();
            await _innerActor.Completion;

            _fetchBatchStrategy.Dispose();
            _offsetBatchStrategy.Dispose();
        }
Exemplo n.º 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();
                }
            }
        }