JavaScript is disabled on your browser.
Skip navigation links
io.reactivex.rxjava3.subscribers

Class TestSubscriber<T>

    • Constructor Detail

      • TestSubscriber

        public TestSubscriber()
        Constructs a non-forwarding TestSubscriber with an initial request value of Long.MAX_VALUE.
      • TestSubscriber

        public TestSubscriber(long initialRequest)
        Constructs a non-forwarding TestSubscriber with the specified initial request value.

        The TestSubscriber doesn't validate the initialRequest amount so one can test sources with invalid values as well.

        Parameters:
        initialRequest - the initial request amount
      • TestSubscriber

        public TestSubscriber(@NonNull Subscriber<? super T> downstream)
        Constructs a forwarding TestSubscriber but leaves the requesting to the wrapped Subscriber.
        Parameters:
        downstream - the actual Subscriber to forward events to
      • TestSubscriber

        public TestSubscriber(@NonNull Subscriber<? super T> actual,
         long initialRequest)
        Constructs a forwarding TestSubscriber with the specified initial request amount and an actual Subscriber to forward events to.

        The TestSubscriber doesn't validate the initialRequest value so one can test sources with invalid values as well.

        Parameters:
        actual - the actual Subscriber to forward events to
        initialRequest - the initial request amount
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /