T - type of Result modelpublic interface AsyncResult<T>
| 限定符和类型 | 方法和说明 |
|---|---|
Exception |
getException()
get error
|
T |
getResult()
get response result
|
T |
getResult(long timewait)
get response result blocked timewait
|
boolean |
isSuccess()
check request is success.
|
void |
setFuture(Future<org.apache.http.HttpResponse> future)
set future
|
void |
setTimewait(long timewait)
time wait
|
T getResult()
T getResult(long timewait)
timewait - wait for result in 'timewait' milliseconds.boolean isSuccess()
Exception getException()
void setTimewait(long timewait)
timewait - wait for result in 'timewait' milliseconds.void setFuture(Future<org.apache.http.HttpResponse> future)
future - thre http client Future responseCopyright © 2021. All Rights Reserved.