Class MonoPublisher<T>

java.lang.Object
org.apache.camel.component.reactive.streams.util.MonoPublisher<T>
All Implemented Interfaces:
org.reactivestreams.Publisher<T>

public class MonoPublisher<T> extends Object implements org.reactivestreams.Publisher<T>
A publisher that publish a given item, then completes.
  • Constructor Details

    • MonoPublisher

      public MonoPublisher(T item)
  • Method Details

    • subscribe

      public void subscribe(org.reactivestreams.Subscriber<? super T> subscriber)
      Specified by:
      subscribe in interface org.reactivestreams.Publisher<T>