Class ThreadEvent

java.lang.Object
io.quarkus.qute.debug.ThreadEvent

public class ThreadEvent extends Object
Represents a thread event in the Qute debugger.

This event is emitted when a debuggee thread is either started or exited. It mirrors the DAP (

invalid reference
org.eclipse.lsp4j.debug
) thread event and provides an easy-to-use model for handling thread lifecycle notifications within the Qute debugger.

See Also:
  • ThreadEventArguments
  • Constructor Details

    • ThreadEvent

      public ThreadEvent(int threadId, ThreadEvent.ThreadStatus threadStatus)
      Creates a new ThreadEvent.
      Parameters:
      threadId - the unique identifier of the thread in the debuggee
      threadStatus - the status of the thread (started or exited)
  • Method Details

    • getThreadId

      public int getThreadId()
      Returns the unique identifier of the thread.
      Returns:
      the thread ID
    • getThreadStatus

      public ThreadEvent.ThreadStatus getThreadStatus()
      Returns the status of the thread.
      Returns:
      the current ThreadEvent.ThreadStatus of the thread
    • getReason

      public String getReason()
      Returns the reason for the thread event in a format compatible with the DAP.

      This is typically used when sending events to the client via the Debug Adapter Protocol.

      Returns:
      the DAP reason string, never null