public class ThreadDeadlockHealthCheck extends HealthCheck
HealthCheck.Result
Constructor and Description |
---|
ThreadDeadlockHealthCheck()
Creates a new health check.
|
ThreadDeadlockHealthCheck(com.codahale.metrics.jvm.ThreadDeadlockDetector detector)
Creates a new health check with the given detector.
|
Modifier and Type | Method and Description |
---|---|
protected HealthCheck.Result |
check()
Perform a check of the application component.
|
execute
public ThreadDeadlockHealthCheck()
public ThreadDeadlockHealthCheck(com.codahale.metrics.jvm.ThreadDeadlockDetector detector)
detector
- a thread deadlock detectorprotected HealthCheck.Result check() throws Exception
HealthCheck
check
in class HealthCheck
HealthCheck.Result
; otherwise, an unhealthy HealthCheck.Result
with a descriptive error message or exceptionException
- if there is an unhandled error during the health check; this will result in
a failed health checkCopyright © 2014. All Rights Reserved.