Class ReactiveStreamsCamelSubscriber

  • All Implemented Interfaces:
    Closeable, AutoCloseable, org.reactivestreams.Subscriber<org.apache.camel.Exchange>

    public class ReactiveStreamsCamelSubscriber
    extends Object
    implements org.reactivestreams.Subscriber<org.apache.camel.Exchange>, Closeable
    The Camel subscriber. It bridges messages from reactive streams to Camel routes.
    • Constructor Detail

      • ReactiveStreamsCamelSubscriber

        public ReactiveStreamsCamelSubscriber​(String name)
    • Method Detail

      • detachConsumer

        public void detachConsumer()
      • onSubscribe

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

        public void onNext​(org.apache.camel.Exchange exchange)
        Specified by:
        onNext in interface org.reactivestreams.Subscriber<org.apache.camel.Exchange>
      • refill

        protected void refill()
      • onError

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

        public void onComplete()
        Specified by:
        onComplete in interface org.reactivestreams.Subscriber<org.apache.camel.Exchange>
      • getRequested

        public long getRequested()
      • getInflightCount

        public long getInflightCount()