java.lang.Object
io.helidon.health.checks.DeadlockHealthCheck
- All Implemented Interfaces:
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
Modifier and TypeMethodDescriptioncall()Call a health check.static DeadlockHealthCheckcreate()Create a new deadlock health check to use.static DeadlockHealthCheckcreate(ThreadMXBean threadBean) Create a new deadlock health check to use.name()Name of this health check, used in output when details are requested.path()Path of this health check, to support single health-check queries.type()Type of this health check.
-
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
-
create
Create a new deadlock health check to use.- Returns:
- a new health check
-
type
Description copied from interface:HealthCheckType of this health check.- Specified by:
typein interfaceHealthCheck- Returns:
- type, defaults to
HealthCheckType.LIVENESS
-
name
Description copied from interface:HealthCheckName of this health check, used in output when details are requested.- Specified by:
namein interfaceHealthCheck- Returns:
- name of this health check, defaults to simple class name
-
path
Description copied from interface:HealthCheckPath of this health check, to support single health-check queries.- Specified by:
pathin interfaceHealthCheck- Returns:
- path to use, by default returns
HealthCheck.name()
-
call
Description copied from interface:HealthCheckCall a health check.- Specified by:
callin interfaceHealthCheck- Returns:
- health response
-