Package io.sentry.protocol
Class Contexts
java.lang.Object
io.sentry.protocol.Contexts
- All Implemented Interfaces:
JsonSerializable
- Direct Known Subclasses:
CombinedContextsView
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
protected final @NotNull AutoClosableReentrantLock
Response lock, Ops should be atomic -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsKey
(@NotNull Object key) entrySet()
boolean
@Nullable Object
@Nullable App
getApp()
@Nullable Browser
@Nullable Device
@Nullable Gpu
getGpu()
@Nullable OperatingSystem
@Nullable Response
@Nullable SentryRuntime
int
getSize()
@Nullable SpanContext
getTrace()
int
hashCode()
boolean
isEmpty()
@NotNull Enumeration<String>
keys()
@Nullable Object
void
void
@Nullable Object
void
serialize
(@NotNull ObjectWriter writer, @NotNull ILogger logger) @Nullable Object
void
void
setBrowser
(@NotNull Browser browser) void
void
void
setOperatingSystem
(@NotNull OperatingSystem operatingSystem) void
setResponse
(@NotNull Response response) void
setRuntime
(@NotNull SentryRuntime runtime) void
setTrace
(@NotNull SpanContext traceContext) int
size()
void
withResponse
(HintUtils.SentryConsumer<Response> callback)
-
Field Details
-
REPLAY_ID
- See Also:
-
responseLock
Response lock, Ops should be atomic
-
-
Constructor Details
-
Contexts
public Contexts() -
Contexts
-
-
Method Details
-
getTrace
-
setTrace
-
getApp
-
setApp
-
getBrowser
-
setBrowser
-
getDevice
-
setDevice
-
getOperatingSystem
-
setOperatingSystem
-
getRuntime
-
setRuntime
-
getGpu
-
setGpu
-
getResponse
-
withResponse
-
setResponse
-
size
public int size() -
getSize
public int getSize() -
isEmpty
public boolean isEmpty() -
containsKey
-
get
-
put
-
set
-
remove
-
keys
-
entrySet
-
putAll
-
putAll
-
equals
-
hashCode
public int hashCode() -
serialize
public void serialize(@NotNull @NotNull ObjectWriter writer, @NotNull @NotNull ILogger logger) throws IOException - Specified by:
serialize
in interfaceJsonSerializable
- Throws:
IOException
-