Class CamelSubscription

  • All Implemented Interfaces:
    org.reactivestreams.Subscription

    public class CamelSubscription
    extends Object
    implements org.reactivestreams.Subscription
    Represents a contract between a Camel published and an external subscriber. It manages backpressure in order to deal with slow subscribers.
    • Method Detail

      • request

        public void request​(long l)
        Specified by:
        request in interface org.reactivestreams.Subscription
      • checkAndFlush

        protected void checkAndFlush()
      • flush

        protected void flush()
      • signalCompletion

        public void signalCompletion()
      • cancel

        public void cancel()
        Specified by:
        cancel in interface org.reactivestreams.Subscription
      • discardBuffer

        protected void discardBuffer​(List<org.apache.camel.Exchange> remaining)
      • publish

        public void publish​(org.apache.camel.Exchange message)
      • getBufferSize

        public long getBufferSize()
      • getId

        public String getId()