public abstract static class RequestExecutorHandlers.Result extends Object implements RequestExecutor.ErrorHandler
Modifier and Type | Field and Description |
---|---|
protected CountDownLatch |
completed |
protected Throwable |
error |
protected List<Notice> |
notices |
Constructor and Description |
---|
Result() |
Modifier and Type | Method and Description |
---|---|
void |
await(long timeout,
TimeUnit unit) |
Throwable |
getError() |
List<Notice> |
getNotices() |
void |
handleError(Throwable error,
List<Notice> notices) |
boolean |
isCompleted() |
boolean |
isValid() |
protected Throwable error
protected CountDownLatch completed
public boolean isValid()
public Throwable getError()
public void handleError(Throwable error, List<Notice> notices)
handleError
in interface RequestExecutor.ErrorHandler
public boolean isCompleted()
public void await(long timeout, TimeUnit unit) throws IOException
IOException