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
Modifier and TypeMethodDescriptionvoidonFailure(HttpContext context, Throwable error) On Completed callback for API callsvoidonSuccess(HttpContext context, T response) On Completed callback for API calls
-
Method Details
-
onSuccess
On Completed callback for API calls- Parameters:
context- The context of the API requestresponse- The response received from the API Call
-
onFailure
On Completed callback for API calls- Parameters:
context- The context of the API requesterror- Any error detected during the API Call and/or deserialization
-