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 Summary
Constructors
-
Method Summary
void
subscribe(org.reactivestreams.Subscriber<? super T> subscriber)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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>