public interface Handler<T>
Modifier and Type | Field and Description |
---|---|
static Handler<Object> |
EMPTY_HANDLER |
Modifier and Type | Method and Description |
---|---|
void |
onFailure(Error error)
Callback that is called in case any error happens
|
void |
onSuccess(T obtained)
Will be invoked if the request finished successfully
|