|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.netflix.karyon.server.eureka.SyncHealthCheckInvocationStrategy
public class SyncHealthCheckInvocationStrategy
An implementation of HealthCheckInvocationStrategy
that synchronously calls the underlying
HealthCheckHandler
.
Constructor Summary | |
---|---|
SyncHealthCheckInvocationStrategy(HealthCheckHandler handler)
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Inject public SyncHealthCheckInvocationStrategy(HealthCheckHandler handler)
Method Detail |
---|
public int invokeCheck() throws java.util.concurrent.TimeoutException
HealthCheckInvocationStrategy
invokeCheck
in interface HealthCheckInvocationStrategy
java.util.concurrent.TimeoutException
- If the healthcheck did not return after the stipulated time (governed entirely by this
strategy implementation)public HealthCheckHandler getHandler()
HealthCheckInvocationStrategy
HealthCheckHandler
associated with this strategy.
getHandler
in interface HealthCheckInvocationStrategy
HealthCheckHandler
associated with this strategy.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |