Class CamelSubscription

java.lang.Object
org.apache.camel.component.reactive.streams.engine.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.
  • Constructor Details

  • Method Details

    • 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)
    • setBackpressureStrategy

      public void setBackpressureStrategy(ReactiveStreamsBackpressureStrategy backpressureStrategy)
    • getBufferSize

      public long getBufferSize()
    • getBackpressureStrategy

      public ReactiveStreamsBackpressureStrategy getBackpressureStrategy()
    • getId

      public String getId()