Class DeadlockDetector.DeadlockReport

java.lang.Object
se.deversity.asynctest.diagnostics.DeadlockDetector.DeadlockReport
Enclosing class:
DeadlockDetector

public static class DeadlockDetector.DeadlockReport extends Object
  • Field Details

    • structuredViolations

      public final List<Violation> structuredViolations
      The same findings as Violations, one per deadlock, each CRITICAL: the severity the text has always marked, stated where the failOn gate reads first.
  • Constructor Details

    • DeadlockReport

      public DeadlockReport(boolean deadlocked)
      Creates a DeadlockReport.
      Parameters:
      deadlocked - the deadlocked flag
    • DeadlockReport

      public DeadlockReport(boolean deadlocked, List<String> virtualThreadCycles)
      Creates a DeadlockReport that also carries cycles found among virtual threads.
      Parameters:
      deadlocked - the deadlocked flag, from the JMX query
      virtualThreadCycles - one line per cycle read out of the JVM's own thread dump
  • Method Details

    • hasIssues

      public boolean hasIssues()
      Returns whether there are issues.
      Returns:
      whether there are issues
    • toString

      public String toString()
      Overrides:
      toString in class Object