Exemple #1
0
        /// <inheritdoc />
        protected override (GraphStageLogic, IControl) Logic(SourceShape <ConsumeResult <K, V> > shape, Attributes inheritedAttributes)
        {
            var logic = new ExternalSingleSourceLogic <K, V, ConsumeResult <K, V> >(shape, Consumer, Subscription,
                                                                                    inheritedAttributes, _ => new PlainMessageBuilder <K, V>());

            return(logic, logic.Control);
        }
Exemple #2
0
        /// <inheritdoc />
        protected override (GraphStageLogic, IControl) Logic(SourceShape <CommittableMessage <K, V> > shape, Attributes inheritedAttributes)
        {
            var logic = new ExternalSingleSourceLogic <K, V, CommittableMessage <K, V> >(shape, Consumer, Subscription, inheritedAttributes, GetMessageBuilder, AutoCreateTopics);

            return(logic, logic.Control);
        }