Thread

A representation of a thread recorded in an Event

Types

Link copied to clipboard
enum State
The state of a reported Thread.

Functions

Link copied to clipboard
Gets whether the thread was the thread that caused the event
Link copied to clipboard
open fun getId(): String
Gets the unique ID of the thread (from java.lang.Thread)
Link copied to clipboard
open fun getName(): String
Gets the name of the thread (from java.lang.Thread)
Link copied to clipboard
Gets a representation of the thread's stacktrace
Link copied to clipboard
Gets the state of the thread (from java.lang.Thread)
Link copied to clipboard
Gets the type of thread based on the originating platform (intended for internal use only)
Link copied to clipboard
open fun setId(@NonNull id: String)
Sets the unique ID of the thread (from java.lang.Thread)
Link copied to clipboard
open fun setName(@NonNull name: String)
Sets the name of the thread (from java.lang.Thread)
Link copied to clipboard
open fun setStacktrace(@NonNull stacktrace: List<Stackframe>)
Sets a representation of the thread's stacktrace
Link copied to clipboard
open fun setState(@NonNull threadState: Thread.State)
Sets the state of thread (from java.lang.Thread)
Link copied to clipboard
open fun setType(@NonNull type: ErrorType)
Sets the type of thread based on the originating platform (intended for internal use only)
Link copied to clipboard
open fun toStream(@NonNull stream: JsonStream)