public class SubscriberWrapper<I,T> extends Object implements org.reactivestreams.Processor<T,T>
Constructor and Description |
---|
SubscriberWrapper(org.reactivestreams.Subscriber<I> subscriber,
Function<T,I> mapper,
BiFunction<T,Throwable,CompletionStage<Void>> postAck) |
Modifier and Type | Method and Description |
---|---|
void |
onComplete() |
void |
onError(Throwable error) |
void |
onNext(T item) |
void |
onSubscribe(org.reactivestreams.Subscription s) |
void |
subscribe(org.reactivestreams.Subscriber<? super T> s)
Gets call with the downstream subscriber (from reactive messaging)
|
public SubscriberWrapper(org.reactivestreams.Subscriber<I> subscriber, Function<T,I> mapper, BiFunction<T,Throwable,CompletionStage<Void>> postAck)
public void subscribe(org.reactivestreams.Subscriber<? super T> s)
subscribe
in interface org.reactivestreams.Publisher<T>
s
- the downstream subscriberpublic void onSubscribe(org.reactivestreams.Subscription s)
onSubscribe
in interface org.reactivestreams.Subscriber<T>
public void onNext(T item)
onNext
in interface org.reactivestreams.Subscriber<T>
public void onError(Throwable error)
onError
in interface org.reactivestreams.Subscriber<T>
public void onComplete()
onComplete
in interface org.reactivestreams.Subscriber<T>
Copyright © 2018–2021 SmallRye. All rights reserved.