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 DeadlockHealthCheck
create()
Create a new deadlock health check to use.static DeadlockHealthCheck
create
(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:HealthCheck
Type of this health check.- Specified by:
type
in interfaceHealthCheck
- Returns:
- type, defaults to
HealthCheckType.LIVENESS
-
name
Description copied from interface:HealthCheck
Name of this health check, used in output when details are requested.- Specified by:
name
in interfaceHealthCheck
- Returns:
- name of this health check, defaults to simple class name
-
path
Description copied from interface:HealthCheck
Path of this health check, to support single health-check queries.- Specified by:
path
in interfaceHealthCheck
- Returns:
- path to use, by default returns
HealthCheck.name()
-
call
Description copied from interface:HealthCheck
Call a health check.- Specified by:
call
in interfaceHealthCheck
- Returns:
- health response
-