java.lang.Object
io.helidon.health.checks.DeadlockHealthCheck
- All Implemented Interfaces:
HealthCheck
@Liveness
@ApplicationScoped
@BuiltInHealthCheck
public class DeadlockHealthCheck
extends Object
implements 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 health.exclude: deadlock.
-
Method Summary
Modifier and TypeMethodDescriptioncall()static DeadlockHealthCheckcreate(ThreadMXBean threadBean) Create a new deadlock health check to use.
-
Method Details
-
create
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.addLiveness(org.eclipse.microprofile.health.HealthCheck...)
-
call
- Specified by:
callin interfaceHealthCheck
-