java.lang.Object
io.quarkus.qute.debug.ThreadEvent
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.debugthread event and
provides an easy-to-use model for handling thread lifecycle notifications
within the Qute debugger.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumRepresents the possible statuses of a thread during its lifecycle in the debugger. -
Constructor Summary
ConstructorsConstructorDescriptionThreadEvent(int threadId, ThreadEvent.ThreadStatus threadStatus) Creates a newThreadEvent. -
Method Summary
Modifier and TypeMethodDescriptionReturns the reason for the thread event in a format compatible with the DAP.intReturns the unique identifier of the thread.Returns the status of the thread.
-
Constructor Details
-
ThreadEvent
Creates a newThreadEvent.- Parameters:
threadId- the unique identifier of the thread in the debuggeethreadStatus- 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
Returns the status of the thread.- Returns:
- the current
ThreadEvent.ThreadStatusof the thread
-
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
-