protected void AddMessageOffset(string topic, int partition, long offset) { var slidingDoor = SlidingDoors.GetOrAdd(SlidingDoor.GetSlidingDoorKey(topic, partition), key => new SlidingDoor(CommitOffset, topic, partition, Configuration.Instance.GetCommitPerMessage())); slidingDoor.AddOffset(offset); }
internal void AddMessage(EQueueMessages.QueueMessage message) { var slidingDoor = SlidingDoors.GetOrAdd(message.QueueId, partition => { return(new SlidingDoor(CommitOffset, partition, Configuration.Instance.GetCommitPerMessage())); }); slidingDoor.AddOffset(message.QueueOffset); }
internal void AddMessage(KafkaMessages.Message message) { var slidingDoor = SlidingDoors.GetOrAdd(message.PartitionId.Value, partition => { return(new SlidingDoor(CommitOffset, partition, Configuration.Instance.GetCommitPerMessage())); }); slidingDoor.AddOffset(message.Offset); }