Class ConvertingSubscriber<R>
- java.lang.Object
-
- org.apache.camel.component.reactive.streams.util.ConvertingSubscriber<R>
-
- All Implemented Interfaces:
org.reactivestreams.Subscriber<R>
public class ConvertingSubscriber<R> extends Object implements org.reactivestreams.Subscriber<R>
A subscriber that converts items of the given type into CamelExchange
s.
-
-
Constructor Summary
Constructors Constructor Description ConvertingSubscriber(org.reactivestreams.Subscriber<org.apache.camel.Exchange> delegate, org.apache.camel.CamelContext context, Class<R> type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onComplete()
void
onError(Throwable throwable)
void
onNext(R r)
void
onSubscribe(org.reactivestreams.Subscription subscription)
-
-
-
Method Detail
-
onSubscribe
public void onSubscribe(org.reactivestreams.Subscription subscription)
- Specified by:
onSubscribe
in interfaceorg.reactivestreams.Subscriber<R>
-
onError
public void onError(Throwable throwable)
- Specified by:
onError
in interfaceorg.reactivestreams.Subscriber<R>
-
onComplete
public void onComplete()
- Specified by:
onComplete
in interfaceorg.reactivestreams.Subscriber<R>
-
-