@Internal public final class JsonSubscriber extends java.lang.Object implements org.reactivestreams.Subscriber<io.netty.handler.codec.http.HttpContent>
| Constructor and Description |
|---|
JsonSubscriber(org.reactivestreams.Subscriber<? super io.netty.handler.codec.http.HttpContent> upstream) |
| Modifier and Type | Method and Description |
|---|---|
void |
onComplete()
On complete the opening bracket should be emitted
if no items were ever produced, then the closing bracket.
|
void |
onError(java.lang.Throwable t) |
void |
onNext(io.netty.handler.codec.http.HttpContent o)
The goal is to prevent the emission of the
opening bracket if the underlying stream never emits
an item and only produces an error.
|
void |
onSubscribe(org.reactivestreams.Subscription s) |
public JsonSubscriber(org.reactivestreams.Subscriber<? super io.netty.handler.codec.http.HttpContent> upstream)
public void onSubscribe(org.reactivestreams.Subscription s)
onSubscribe in interface org.reactivestreams.Subscriber<io.netty.handler.codec.http.HttpContent>public void onNext(io.netty.handler.codec.http.HttpContent o)
onNext in interface org.reactivestreams.Subscriber<io.netty.handler.codec.http.HttpContent>o - The contentpublic void onError(java.lang.Throwable t)
onError in interface org.reactivestreams.Subscriber<io.netty.handler.codec.http.HttpContent>public void onComplete()
onComplete in interface org.reactivestreams.Subscriber<io.netty.handler.codec.http.HttpContent>