Package com.moesif.api.controllers
Class HealthController
- java.lang.Object
-
- com.moesif.api.controllers.BaseController
-
- com.moesif.api.controllers.HealthController
-
- All Implemented Interfaces:
IHealthController
public class HealthController extends BaseController implements IHealthController
-
-
Field Summary
-
Fields inherited from class com.moesif.api.controllers.BaseController
httpCallBack
-
-
Constructor Summary
Constructors Constructor Description HealthController()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StatusModelgetHealthProbe()Health ProbevoidgetHealthProbeAsync(APICallBack<StatusModel> callBack)Health Probe Asyncstatic HealthControllergetInstance()Singleton pattern implementation-
Methods inherited from class com.moesif.api.controllers.BaseController
getClientInstance, getHttpCallBack, setClientInstance, setHttpCallBack, validateResponse
-
-
-
-
Method Detail
-
getInstance
public static HealthController getInstance()
Singleton pattern implementation- Returns:
- The singleton instance of the HealthController class
-
getHealthProbe
public StatusModel getHealthProbe() throws Throwable
Health Probe- Specified by:
getHealthProbein interfaceIHealthController- Returns:
- The health probe
- Throws:
Throwable- on getting health probe
-
getHealthProbeAsync
public void getHealthProbeAsync(APICallBack<StatusModel> callBack)
Health Probe Async- Specified by:
getHealthProbeAsyncin interfaceIHealthController- Parameters:
callBack- Called after the HTTP response is received
-
-