Class StuckThreadDetectionService

java.lang.Object
tech.riemann.nif.support.tiangong.connector.StuckThreadDetectionService

public class StuckThreadDetectionService extends Object
  • Method Details

    • getInstance

      public static StuckThreadDetectionService getInstance()
    • start

      public static StuckThreadDetectionService start(long thresholdMs, long checkIntervalMs)
    • recordRequestStart

      public void recordRequestStart(String requestUri, String remoteAddress)
    • recordRequestEnd

      public void recordRequestEnd()
    • getActiveRequestCount

      public int getActiveRequestCount()
    • shutdown

      public void shutdown()