Package com.moesif.api.http.client
Interface APICallBack<T>
-
- All Known Implementing Classes:
APICallBackCatcher
public interface APICallBack<T>Callback class for handling API calls with a templated response type T
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonFailure(HttpContext context, Throwable error)On Completed callback for API callsvoidonSuccess(HttpContext context, T response)On Completed callback for API calls
-
-
-
Method Detail
-
onSuccess
void onSuccess(HttpContext context, T response)
On Completed callback for API calls- Parameters:
context- The context of the API requestresponse- The response received from the API Call
-
onFailure
void onFailure(HttpContext context, Throwable error)
On Completed callback for API calls- Parameters:
context- The context of the API requesterror- Any error detected during the API Call and/or deserialization
-
-