Thread

open class Thread : JsonStream.Streamable

A representation of a thread recorded in an Event

Types

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

Functions

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