Class ThreadDeadlockHealthCheck


  • public class ThreadDeadlockHealthCheck
    extends HealthCheck
    A health check which returns healthy if no threads are deadlocked.
    • Constructor Detail

      • ThreadDeadlockHealthCheck

        public ThreadDeadlockHealthCheck()
        Creates a new health check.
      • ThreadDeadlockHealthCheck

        public ThreadDeadlockHealthCheck​(ThreadDeadlockDetector detector)
        Creates a new health check with the given detector.
        Parameters:
        detector - a thread deadlock detector
    • Method Detail

      • check

        protected HealthCheck.Result check()
                                    throws java.lang.Exception
        Description copied from class: HealthCheck
        Perform a check of the application component.
        Specified by:
        check in class HealthCheck
        Returns:
        if the component is healthy, a healthy HealthCheck.Result; otherwise, an unhealthy HealthCheck.Result with a descriptive error message or exception
        Throws:
        java.lang.Exception - if there is an unhandled error during the health check; this will result in a failed health check