Class ConvertingSubscriber<R>

  • All Implemented Interfaces:
    org.reactivestreams.Subscriber<R>

    public class ConvertingSubscriber<R>
    extends Object
    implements org.reactivestreams.Subscriber<R>
    A subscriber that converts items of the given type into Camel Exchanges.
    • Constructor Detail

      • ConvertingSubscriber

        public ConvertingSubscriber​(org.reactivestreams.Subscriber<org.apache.camel.Exchange> delegate,
                                    org.apache.camel.CamelContext context,
                                    Class<R> type)
    • Method Detail

      • onSubscribe

        public void onSubscribe​(org.reactivestreams.Subscription subscription)
        Specified by:
        onSubscribe in interface org.reactivestreams.Subscriber<R>
      • onNext

        public void onNext​(R r)
        Specified by:
        onNext in interface org.reactivestreams.Subscriber<R>
      • onError

        public void onError​(Throwable throwable)
        Specified by:
        onError in interface org.reactivestreams.Subscriber<R>
      • onComplete

        public void onComplete()
        Specified by:
        onComplete in interface org.reactivestreams.Subscriber<R>