Package io.sentry
Class SentryLockReason
java.lang.Object
io.sentry.SentryLockReason
- All Implemented Interfaces:
JsonSerializable,JsonUnknown
Represents an instance of a held lock (java monitor object) in a thread.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean@Nullable String@Nullable String@Nullable String@Nullable LongintgetType()inthashCode()voidserialize(@NotNull ObjectWriter writer, @NotNull ILogger logger) voidsetAddress(@Nullable String address) voidsetClassName(@Nullable String className) voidsetPackageName(@Nullable String packageName) voidsetThreadId(@Nullable Long threadId) voidsetType(int type) voidsetUnknown(@Nullable Map<String, Object> unknown)
-
Field Details
-
LOCKED
public static final int LOCKED- See Also:
-
WAITING
public static final int WAITING- See Also:
-
SLEEPING
public static final int SLEEPING- See Also:
-
BLOCKED
public static final int BLOCKED- See Also:
-
ANY
public static final int ANY- See Also:
-
-
Constructor Details
-
SentryLockReason
public SentryLockReason() -
SentryLockReason
-
-
Method Details
-
getType
public int getType() -
setType
public void setType(int type) -
getAddress
-
setAddress
-
getPackageName
-
setPackageName
-
getClassName
-
setClassName
-
getThreadId
-
setThreadId
-
equals
-
hashCode
public int hashCode() -
getUnknown
- Specified by:
getUnknownin interfaceJsonUnknown
-
setUnknown
- Specified by:
setUnknownin interfaceJsonUnknown
-
serialize
public void serialize(@NotNull @NotNull ObjectWriter writer, @NotNull @NotNull ILogger logger) throws IOException - Specified by:
serializein interfaceJsonSerializable- Throws:
IOException
-