Enum Class TestSubscriber.EmptySubscriber

java.lang.Object
java.lang.Enum<TestSubscriber.EmptySubscriber>
io.reactivex.rxjava3.subscribers.TestSubscriber.EmptySubscriber
All Implemented Interfaces:
FlowableSubscriber<Object>, Serializable, Comparable<TestSubscriber.EmptySubscriber>, Constable, org.reactivestreams.Subscriber<Object>
Enclosing class:
TestSubscriber<T>

static enum TestSubscriber.EmptySubscriber extends Enum<TestSubscriber.EmptySubscriber> implements FlowableSubscriber<Object>
A subscriber that ignores all events and does not report errors.
  • Enum Constant Details

  • Constructor Details

    • EmptySubscriber

      private EmptySubscriber()
  • Method Details

    • values

      public static TestSubscriber.EmptySubscriber[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TestSubscriber.EmptySubscriber valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • onSubscribe

      public void onSubscribe(org.reactivestreams.Subscription s)
      Description copied from interface: FlowableSubscriber
      Implementors of this method should make sure everything that needs to be visible in Subscriber.onNext(Object) is established before calling Subscription.request(long). In practice this means no initialization should happen after the request() call and additional behavior is thread safe in respect to onNext.
      Specified by:
      onSubscribe in interface FlowableSubscriber<Object>
      Specified by:
      onSubscribe in interface org.reactivestreams.Subscriber<Object>
    • onNext

      public void onNext(Object t)
      Specified by:
      onNext in interface org.reactivestreams.Subscriber<Object>
    • onError

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

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