public final class SentryThread extends java.lang.Object implements IUnknownPropertiesConsumer
Constructor and Description |
---|
SentryThread() |
Modifier and Type | Method and Description |
---|---|
void |
acceptUnknownProperties(java.util.Map<java.lang.String,java.lang.Object> unknown) |
java.lang.Long |
getId()
Gets the Id of the thread.
|
java.lang.String |
getName()
Gets the name of the thread.
|
java.lang.Integer |
getPriority()
Gets the priority of the thread.
|
SentryStackTrace |
getStacktrace()
Gets the stacktrace of the thread.
|
java.lang.String |
getState()
Gets the state of the thread.
|
java.lang.Boolean |
isCrashed()
Gets whether the crash happened on this thread.
|
java.lang.Boolean |
isCurrent()
Get an optional flag to indicate that the thread was in the foreground.
|
java.lang.Boolean |
isDaemon()
Gets if this thread is a daemon thread.
|
void |
setCrashed(java.lang.Boolean crashed)
Sets whether the crash happened on this thread.
|
void |
setCurrent(java.lang.Boolean current)
Sets an optional flag to indicate that the thread was in the foreground.
|
void |
setDaemon(java.lang.Boolean daemon)
Sets if this is a daemon thread.
|
void |
setId(java.lang.Long id)
Sets the Id of the thread.
|
void |
setName(java.lang.String name)
Sets the name of the thread.
|
void |
setPriority(java.lang.Integer priority)
Sets the priority of the thread.
|
void |
setStacktrace(SentryStackTrace stacktrace)
Sets the stacktrace of the thread.
|
void |
setState(java.lang.String state)
Sets the state of the thread.
|
public java.lang.Long getId()
public void setId(java.lang.Long id)
id
- the thread id.public java.lang.String getName()
public void setName(java.lang.String name)
name
- the name of the thread.public java.lang.Boolean isCrashed()
public void setCrashed(java.lang.Boolean crashed)
crashed
- whether it was the crashed thread.public java.lang.Boolean isCurrent()
public void setCurrent(java.lang.Boolean current)
current
- whether the thread was in the foreground.public SentryStackTrace getStacktrace()
public void setStacktrace(SentryStackTrace stacktrace)
stacktrace
- the thread stacktrace.public java.lang.Integer getPriority()
public void setPriority(java.lang.Integer priority)
priority
- of the thread.public java.lang.Boolean isDaemon()
public void setDaemon(java.lang.Boolean daemon)
daemon
- true if the thread is daemon thread. Otherwise false.public java.lang.String getState()
public void setState(java.lang.String state)
state
- the state of the thread.@ApiStatus.Internal public void acceptUnknownProperties(java.util.Map<java.lang.String,java.lang.Object> unknown)
acceptUnknownProperties
in interface IUnknownPropertiesConsumer