- java.lang.Object
-
- org.redkale.net.http.WebClient.ClientReadCompletionHandler<T>
-
- 所有已实现的接口:
CompletionHandler<Integer,ByteBuffer>
- 封闭类:
- WebClient
protected class WebClient.ClientReadCompletionHandler<T> extends Object implements CompletionHandler<Integer,ByteBuffer>
-
-
字段概要
字段 修饰符和类型 字段 说明 protected ByteArrayarrayprotected WebClient.HttpConnectionconnprotected intcontentLengthprotected Convertconvertprotected CompletableFuture<HttpResult<T>>futureprotected static intREAD_STATE_BODYprotected static intREAD_STATE_ENDprotected static intREAD_STATE_HEADERprotected static intREAD_STATE_ROUTEprotected intreadStateprotected HttpResult<byte[]>responseResultprotected Stringtraceidprotected TypevalueTypeprotected WorkThreadworkThread
-
构造器概要
构造器 构造器 说明 ClientReadCompletionHandler(WebClient.HttpConnection conn, WorkThread workThread, String traceid, ByteArray array, Convert convert, Type valueType, CompletableFuture<HttpResult<T>> future)
-
-
-
字段详细资料
-
READ_STATE_ROUTE
protected static final int READ_STATE_ROUTE
- 另请参阅:
- 常量字段值
-
READ_STATE_HEADER
protected static final int READ_STATE_HEADER
- 另请参阅:
- 常量字段值
-
READ_STATE_BODY
protected static final int READ_STATE_BODY
- 另请参阅:
- 常量字段值
-
READ_STATE_END
protected static final int READ_STATE_END
- 另请参阅:
- 常量字段值
-
conn
protected final WebClient.HttpConnection conn
-
array
protected final ByteArray array
-
traceid
protected final String traceid
-
workThread
protected final WorkThread workThread
-
future
protected final CompletableFuture<HttpResult<T>> future
-
convert
protected Convert convert
-
valueType
protected Type valueType
-
responseResult
protected HttpResult<byte[]> responseResult
-
readState
protected int readState
-
contentLength
protected int contentLength
-
-
构造器详细资料
-
ClientReadCompletionHandler
public ClientReadCompletionHandler(WebClient.HttpConnection conn, WorkThread workThread, String traceid, ByteArray array, Convert convert, Type valueType, CompletableFuture<HttpResult<T>> future)
-
-
方法详细资料
-
completed
public void completed(Integer count, ByteBuffer buffer)
- 指定者:
completed在接口中CompletionHandler<Integer,ByteBuffer>
-
failed
public void failed(Throwable exc, ByteBuffer attachment)
- 指定者:
failed在接口中CompletionHandler<Integer,ByteBuffer>
-
-