Class NoopSubscriber<T>
java.lang.Object
com.linecorp.armeria.common.stream.NoopSubscriber<T>
- All Implemented Interfaces:
org.reactivestreams.Subscriber<T>
A
Subscriber
that discards all elements silently.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> NoopSubscriber<T>
get()
Returns a singletonNoopSubscriber
.void
void
void
void
onSubscribe(org.reactivestreams.Subscription s)
-
Constructor Details
-
NoopSubscriber
public NoopSubscriber()
-
-
Method Details
-
get
Returns a singletonNoopSubscriber
. -
onSubscribe
public void onSubscribe(org.reactivestreams.Subscription s)- Specified by:
onSubscribe
in interfaceorg.reactivestreams.Subscriber<T>
-
onNext
- Specified by:
onNext
in interfaceorg.reactivestreams.Subscriber<T>
-
onError
- Specified by:
onError
in interfaceorg.reactivestreams.Subscriber<T>
-
onComplete
public void onComplete()- Specified by:
onComplete
in interfaceorg.reactivestreams.Subscriber<T>
-