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
Modifier and TypeClassDescriptionstatic final class
static final class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
@Nullable String
@Nullable String
@Nullable String
@Nullable Long
int
getType()
int
hashCode()
void
serialize
(@NotNull ObjectWriter writer, @NotNull ILogger logger) void
setAddress
(@Nullable String address) void
setClassName
(@Nullable String className) void
setPackageName
(@Nullable String packageName) void
setThreadId
(@Nullable Long threadId) void
setType
(int type) void
setUnknown
(@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:
getUnknown
in interfaceJsonUnknown
-
setUnknown
- Specified by:
setUnknown
in interfaceJsonUnknown
-
serialize
public void serialize(@NotNull @NotNull ObjectWriter writer, @NotNull @NotNull ILogger logger) throws IOException - Specified by:
serialize
in interfaceJsonSerializable
- Throws:
IOException
-