Class DelegatingSubscriber<O>
- java.lang.Object
-
- io.smallrye.reactive.streams.utils.DelegatingSubscriber<O>
-
- All Implemented Interfaces:
org.reactivestreams.Subscriber<O>
public class DelegatingSubscriber<O> extends Object implements org.reactivestreams.Subscriber<O>
A subscriber delegating to another subscriber and enforcing that parameters are notnull- Author:
- Clement Escoffier
-
-
Constructor Summary
Constructors Constructor Description DelegatingSubscriber(org.reactivestreams.Subscriber<? super O> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonComplete()voidonError(Throwable t)voidonNext(O out)voidonSubscribe(org.reactivestreams.Subscription s)
-
-
-
Constructor Detail
-
DelegatingSubscriber
public DelegatingSubscriber(org.reactivestreams.Subscriber<? super O> delegate)
-
-
Method Detail
-
onSubscribe
public void onSubscribe(org.reactivestreams.Subscription s)
- Specified by:
onSubscribein interfaceorg.reactivestreams.Subscriber<O>
-
onNext
public void onNext(O out)
- Specified by:
onNextin interfaceorg.reactivestreams.Subscriber<O>
-
onError
public void onError(Throwable t)
- Specified by:
onErrorin interfaceorg.reactivestreams.Subscriber<O>
-
onComplete
public void onComplete()
- Specified by:
onCompletein interfaceorg.reactivestreams.Subscriber<O>
-
-