Class NoopSubscriber<T>

java.lang.Object
com.linecorp.armeria.common.stream.NoopSubscriber<T>
All Implemented Interfaces:
org.reactivestreams.Subscriber<T>

public final class NoopSubscriber<T> extends Object implements org.reactivestreams.Subscriber<T>
A Subscriber that discards all elements silently.
  • Constructor Details

    • NoopSubscriber

      public NoopSubscriber()
  • Method Details

    • get

      public static <T> NoopSubscriber<T> get()
      Returns a singleton NoopSubscriber.
    • onSubscribe

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

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

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

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