public final class HttpHeaderSubscriber extends Object implements org.reactivestreams.Subscriber<HttpObject>, BiConsumer<Void,Throwable>
Subscriber that completes the CompletableFuture which has taken as the argument in the
constructor with HttpHeaders. The HttpHeaders contains a status that is not informational.
If subscription is finished before subscribing a status, this will complete the future with
the HttpHeaders.of().| Constructor and Description |
|---|
HttpHeaderSubscriber(CompletableFuture<HttpHeaders> future)
Create a instance that subscribes until it receives
HttpHeaders. |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Void aVoid,
Throwable thrown) |
void |
onComplete() |
void |
onError(Throwable t) |
void |
onNext(HttpObject o) |
void |
onSubscribe(org.reactivestreams.Subscription s) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitandThenpublic HttpHeaderSubscriber(CompletableFuture<HttpHeaders> future)
HttpHeaders.public void onSubscribe(org.reactivestreams.Subscription s)
onSubscribe in interface org.reactivestreams.Subscriber<HttpObject>public void onNext(HttpObject o)
onNext in interface org.reactivestreams.Subscriber<HttpObject>public void onError(Throwable t)
onError in interface org.reactivestreams.Subscriber<HttpObject>public void onComplete()
onComplete in interface org.reactivestreams.Subscriber<HttpObject>Copyright © 2020 LeanCloud. All rights reserved.