Package io.helidon.health.checks
Class DeadlockHealthCheck
- java.lang.Object
-
- io.helidon.health.checks.DeadlockHealthCheck
-
- All Implemented Interfaces:
org.eclipse.microprofile.health.HealthCheck
@Health @ApplicationScoped public final class DeadlockHealthCheck extends Object implements org.eclipse.microprofile.health.HealthCheck
A health check that looks for thread deadlocks. Automatically created and registered via CDI. This health check can be referred to in properties as "deadlock". So for example, to exclude this health check from being exposed, use "helidon.health.exclude: deadlock".
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.microprofile.health.HealthCheckResponsecall()static DeadlockHealthCheckcreate(ThreadMXBean threadBean)Create a new deadlock health check to use.
-
-
-
Method Detail
-
create
public static DeadlockHealthCheck create(ThreadMXBean threadBean)
Create a new deadlock health check to use.- Parameters:
threadBean- thread mx bean to get thread monitoring data from- Returns:
- a new health check to register with
HealthSupport.Builder.add(org.eclipse.microprofile.health.HealthCheck...)
-
call
public org.eclipse.microprofile.health.HealthCheckResponse call()
- Specified by:
callin interfaceorg.eclipse.microprofile.health.HealthCheck
-
-