Class 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 not null
    Author:
    Clement Escoffier
    • Constructor Detail

      • DelegatingSubscriber

        public DelegatingSubscriber​(org.reactivestreams.Subscriber<? super O> delegate)
    • Method Detail

      • onSubscribe

        public void onSubscribe​(org.reactivestreams.Subscription s)
        Specified by:
        onSubscribe in interface org.reactivestreams.Subscriber<O>
      • onNext

        public void onNext​(O out)
        Specified by:
        onNext in interface org.reactivestreams.Subscriber<O>
      • onError

        public void onError​(Throwable t)
        Specified by:
        onError in interface org.reactivestreams.Subscriber<O>
      • onComplete

        public void onComplete()
        Specified by:
        onComplete in interface org.reactivestreams.Subscriber<O>