예제 #1
0
        internal void RemoveMessage(int partition, long offset)
        {
            var slidingDoor = SlidingDoors.TryGetValue(partition);

            if (slidingDoor == null)
            {
                throw new Exception("partition slidingDoor not exists");
            }
            slidingDoor.RemoveOffset(offset);
        }
예제 #2
0
        /// <summary>
        /// </summary>
        /// <param name="messageOffset"></param>
        protected virtual void FinishConsumingMessage(MessageOffset messageOffset)
        {
            var slidingDoor = SlidingDoors.TryGetValue(messageOffset.SlidingDoorKey);

            if (slidingDoor == null)
            {
                throw new Exception("partition slidingDoor not exists");
            }
            slidingDoor.RemoveOffset(messageOffset);
        }