Class ConvertingSubscriber<R>
java.lang.Object
org.apache.camel.component.reactive.streams.util.ConvertingSubscriber<R>
- All Implemented Interfaces:
org.reactivestreams.Subscriber<R>
A subscriber that converts items of the given type into Camel
Exchanges.-
Constructor Summary
ConstructorsConstructorDescriptionConvertingSubscriber(org.reactivestreams.Subscriber<org.apache.camel.Exchange> delegate, org.apache.camel.CamelContext context, Class<R> type) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidonSubscribe(org.reactivestreams.Subscription subscription)
-
Constructor Details
-
ConvertingSubscriber
-
-
Method Details
-
onSubscribe
public void onSubscribe(org.reactivestreams.Subscription subscription) - Specified by:
onSubscribein interfaceorg.reactivestreams.Subscriber<R>
-
onNext
- Specified by:
onNextin interfaceorg.reactivestreams.Subscriber<R>
-
onError
- Specified by:
onErrorin interfaceorg.reactivestreams.Subscriber<R>
-
onComplete
public void onComplete()- Specified by:
onCompletein interfaceorg.reactivestreams.Subscriber<R>
-