T - type of Result modelpublic interface AsyncResult<T>
| 限定符和类型 | 方法和说明 |
|---|---|
Exception |
getException() |
T |
getResult() |
T |
getResult(long timewait) |
boolean |
isSuccess() |
void |
setFuture(Future<org.apache.http.HttpResponse> future) |
void |
setTimewait(long timewait) |
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 © 2016. All Rights Reserved.