public abstract class ResponseConsumer<Res>
extends com.aliyun.ots.thirdparty.org.apache.http.nio.protocol.AbstractAsyncResponseConsumer<Res>
| 限定符和类型 | 字段和说明 |
|---|---|
protected com.aliyun.ots.thirdparty.org.apache.http.nio.util.SimpleInputBuffer |
buf |
protected static int |
BUFFER_SIZE |
protected ExecutionContext |
context |
protected com.aliyun.ots.thirdparty.org.apache.http.HttpResponse |
httpResponse |
protected Res |
lastResult |
protected ResultParser |
resultParser |
protected RetryStrategy |
retry |
protected TraceLogger |
traceLogger |
| 构造器和说明 |
|---|
ResponseConsumer(ResultParser resultParser,
TraceLogger traceLogger,
RetryStrategy retry,
Res lastResult) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Res |
buildResult(com.aliyun.ots.thirdparty.org.apache.http.protocol.HttpContext context) |
protected ResponseContentWithMeta |
getResponseContentWithMeta() |
protected void |
onContentReceived(com.aliyun.ots.thirdparty.org.apache.http.nio.ContentDecoder decoder,
com.aliyun.ots.thirdparty.org.apache.http.nio.IOControl ioctrl) |
protected void |
onEntityEnclosed(com.aliyun.ots.thirdparty.org.apache.http.HttpEntity entity,
com.aliyun.ots.thirdparty.org.apache.http.entity.ContentType contentType) |
protected void |
onResponseReceived(com.aliyun.ots.thirdparty.org.apache.http.HttpResponse response) |
protected abstract Res |
parseResult() |
protected void |
releaseResources() |
void |
setContext(ExecutionContext context) |
protected static final int BUFFER_SIZE
protected volatile com.aliyun.ots.thirdparty.org.apache.http.HttpResponse httpResponse
protected volatile com.aliyun.ots.thirdparty.org.apache.http.nio.util.SimpleInputBuffer buf
protected ResultParser resultParser
protected ExecutionContext context
protected TraceLogger traceLogger
protected RetryStrategy retry
protected Res lastResult
public ResponseConsumer(ResultParser resultParser, TraceLogger traceLogger, RetryStrategy retry, Res lastResult)
public void setContext(ExecutionContext context)
protected void onResponseReceived(com.aliyun.ots.thirdparty.org.apache.http.HttpResponse response)
throws IOException
onResponseReceived 在类中 com.aliyun.ots.thirdparty.org.apache.http.nio.protocol.AbstractAsyncResponseConsumer<Res>IOExceptionprotected Res buildResult(com.aliyun.ots.thirdparty.org.apache.http.protocol.HttpContext context) throws Exception
protected ResponseContentWithMeta getResponseContentWithMeta() throws Exception
Exceptionprotected void onEntityEnclosed(com.aliyun.ots.thirdparty.org.apache.http.HttpEntity entity,
com.aliyun.ots.thirdparty.org.apache.http.entity.ContentType contentType)
throws IOException
onEntityEnclosed 在类中 com.aliyun.ots.thirdparty.org.apache.http.nio.protocol.AbstractAsyncResponseConsumer<Res>IOExceptionprotected void onContentReceived(com.aliyun.ots.thirdparty.org.apache.http.nio.ContentDecoder decoder,
com.aliyun.ots.thirdparty.org.apache.http.nio.IOControl ioctrl)
throws IOException
onContentReceived 在类中 com.aliyun.ots.thirdparty.org.apache.http.nio.protocol.AbstractAsyncResponseConsumer<Res>IOExceptionprotected void releaseResources()
releaseResources 在类中 com.aliyun.ots.thirdparty.org.apache.http.nio.protocol.AbstractAsyncResponseConsumer<Res>Copyright © 2025. All Rights Reserved.