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); }
/// <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); }