com.moesif.api.http.client.APICallBack Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of moesifapi Show documentation
Show all versions of moesifapi Show documentation
Java API Library for Moesif
/*
* MoesifAPILib
*
*
*/
package com.moesif.api.http.client;
import com.moesif.api.http.client.HttpContext;
/**
* Callback class for handling API calls with a templated response type T
*/
public interface APICallBack {
/**
* On Completed callback for API calls
* @param context The context of the API request
* @param response The response received from the API Call
*/
public void onSuccess(HttpContext context, T response);
/**
* On Completed callback for API calls
* @param context The context of the API request
* @param error Any error detected during the API Call and/or deserialization
*/
public void onFailure(HttpContext context, Throwable error);
}