Package io.sentry

Class SentryLockReason

java.lang.Object
io.sentry.SentryLockReason
All Implemented Interfaces:
JsonSerializable, JsonUnknown

public final class SentryLockReason extends Object implements JsonUnknown, JsonSerializable
Represents an instance of a held lock (java monitor object) in a thread.
  • Field Details

  • Constructor Details

    • SentryLockReason

      public SentryLockReason()
    • SentryLockReason

      public SentryLockReason(@NotNull @NotNull SentryLockReason other)
  • Method Details

    • getType

      public int getType()
    • setType

      public void setType(int type)
    • getAddress

      @Nullable public @Nullable String getAddress()
    • setAddress

      public void setAddress(@Nullable @Nullable String address)
    • getPackageName

      @Nullable public @Nullable String getPackageName()
    • setPackageName

      public void setPackageName(@Nullable @Nullable String packageName)
    • getClassName

      @Nullable public @Nullable String getClassName()
    • setClassName

      public void setClassName(@Nullable @Nullable String className)
    • getThreadId

      @Nullable public @Nullable Long getThreadId()
    • setThreadId

      public void setThreadId(@Nullable @Nullable Long threadId)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getUnknown

      @Nullable public @Nullable Map<String,Object> getUnknown()
      Specified by:
      getUnknown in interface JsonUnknown
    • setUnknown

      public void setUnknown(@Nullable @Nullable Map<String,Object> unknown)
      Specified by:
      setUnknown in interface JsonUnknown
    • serialize

      public void serialize(@NotNull @NotNull ObjectWriter writer, @NotNull @NotNull ILogger logger) throws IOException
      Specified by:
      serialize in interface JsonSerializable
      Throws:
      IOException