|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HealthCheckInvocationStrategy
A strategy to make application specific healthchecks. Since, the application health checks can be poorly implemented and hence take a long time to complete, in some cases, it is wise to have an SLA around the health check response times.
The default health check strategyAsyncHealthCheckInvocationStrategy
can be overridden by providing the
strategy class name in the property PropertyNames.HEALTH_CHECK_STRATEGY
which should
implement this interface. HealthCheckHandler
instance and hence it is assumed
that the strategy already knows about the handler instance.
Method Summary | |
---|---|
HealthCheckHandler |
getHandler()
Returns the instance of HealthCheckHandler associated with this strategy. |
int |
invokeCheck()
Invokes the handler associated with this strategy and returns the response. |
Method Detail |
---|
int invokeCheck() throws java.util.concurrent.TimeoutException
java.util.concurrent.TimeoutException
- If the healthcheck did not return after the stipulated time (governed entirely by this
strategy implementation)HealthCheckHandler getHandler()
HealthCheckHandler
associated with this strategy.
HealthCheckHandler
associated with this strategy.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |