Beispiel #1
0
        private CommittableSourceMessageBuilder <K, V> GetMessageBuilder(BaseSingleSourceLogic <K, V, CommittableMessage <K, V> > logic)
        {
            var committer = new KafkaAsyncConsumerCommitter(() => logic.ConsumerActor, CommitTimeout);

            return(new CommittableSourceMessageBuilder <K, V>(committer, GroupId, m => string.Empty));
        }
Beispiel #2
0
        private CommittableSourceMessageBuilder <K, V> GetMessageBuilder(BaseSingleSourceLogic <K, V, CommittableMessage <K, V> > logic)
        {
            var committer = new KafkaAsyncConsumerCommitter(() => logic.ConsumerActor, Settings.CommitTimeout);

            return(new CommittableSourceMessageBuilder <K, V>(committer, Settings.GroupId, _metadataFromMessage));
        }