| 限定符和类型 | 字段和说明 |
|---|---|
protected com.swak.reactor.publisher.DisposableMonoSink<T> |
emitter
The Rx callback object that receives downstream events and will be queried
for its
disposed state when Async HTTP
Client callbacks are invoked. |
| 限定符 | 构造器和说明 |
|---|---|
protected |
AbstractSinkAsyncHandlerBridge(com.swak.reactor.publisher.DisposableMonoSink<T> emitter) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract org.asynchttpclient.AsyncHandler<? extends T> |
delegate() |
protected org.asynchttpclient.AsyncHandler.State |
disposed()
Called to indicate that request processing is to be aborted because the
linked Rx stream has been disposed.
|
org.asynchttpclient.AsyncHandler.State |
onBodyPartReceived(org.asynchttpclient.HttpResponseBodyPart content) |
Void |
onCompleted()
The value returned by the wrapped
AsyncHandler won't be returned by
this method, but emtited via RxJava. |
org.asynchttpclient.AsyncHandler.State |
onHeadersReceived(io.netty.handler.codec.http.HttpHeaders headers) |
org.asynchttpclient.AsyncHandler.State |
onStatusReceived(org.asynchttpclient.HttpResponseStatus status) |
void |
onThrowable(Throwable t)
The exception will first be propagated to the wrapped
AsyncHandler,
then emitted via RxJava. |
org.asynchttpclient.AsyncHandler.State |
onTrailingHeadersReceived(io.netty.handler.codec.http.HttpHeaders headers) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonConnectionOffer, onConnectionPoolAttempt, onConnectionPooled, onHostnameResolutionAttempt, onHostnameResolutionFailure, onHostnameResolutionSuccess, onRequestSend, onRetry, onTcpConnectAttempt, onTcpConnectFailure, onTcpConnectSuccess, onTlsHandshakeAttempt, onTlsHandshakeFailure, onTlsHandshakeSuccessprotected final com.swak.reactor.publisher.DisposableMonoSink<T> emitter
disposed state when Async HTTP
Client callbacks are invoked.protected AbstractSinkAsyncHandlerBridge(com.swak.reactor.publisher.DisposableMonoSink<T> emitter)
public final org.asynchttpclient.AsyncHandler.State onBodyPartReceived(org.asynchttpclient.HttpResponseBodyPart content)
throws Exception
public final org.asynchttpclient.AsyncHandler.State onStatusReceived(org.asynchttpclient.HttpResponseStatus status)
throws Exception
public final org.asynchttpclient.AsyncHandler.State onHeadersReceived(io.netty.handler.codec.http.HttpHeaders headers)
throws Exception
public org.asynchttpclient.AsyncHandler.State onTrailingHeadersReceived(io.netty.handler.codec.http.HttpHeaders headers)
throws Exception
public final Void onCompleted()
The value returned by the wrapped AsyncHandler won't be returned by
this method, but emtited via RxJava.
onCompleted 在接口中 org.asynchttpclient.AsyncHandler<Void>nullpublic final void onThrowable(Throwable t)
The exception will first be propagated to the wrapped AsyncHandler,
then emitted via RxJava. If the invocation of the delegate itself throws an
exception, both the original exception and the follow-up exception will be
wrapped into RxJava's CompositeException and then be emitted.
onThrowable 在接口中 org.asynchttpclient.AsyncHandler<Void>protected final org.asynchttpclient.AsyncHandler.State disposed()
delegate
didn't already receive a terminal event,
AsyncHandler#onThrowable(Throwable) onThrowable will be called with a
DisposedException.State#ABORTprotected abstract org.asynchttpclient.AsyncHandler<? extends T> delegate()
AsyncHandler instance to which calls are
delegatedCopyright © 2020. All rights reserved.