Package io.sentry.protocol
Class Contexts
java.lang.Object
io.sentry.protocol.Contexts
- All Implemented Interfaces:
JsonSerializable
- Direct Known Subclasses:
CombinedContextsView
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected final @NotNull AutoClosableReentrantLockResponse lock, Ops should be atomic -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(@NotNull Object key) entrySet()boolean@Nullable Object@Nullable AppgetApp()@Nullable Browser@Nullable Device@Nullable GpugetGpu()@Nullable OperatingSystem@Nullable Response@Nullable SentryRuntimeintgetSize()@Nullable SpanContextgetTrace()inthashCode()booleanisEmpty()@NotNull Enumeration<String>keys()@Nullable Objectvoidvoid@Nullable Objectvoidserialize(@NotNull ObjectWriter writer, @NotNull ILogger logger) @Nullable ObjectvoidvoidsetBrowser(@NotNull Browser browser) voidvoidvoidsetOperatingSystem(@NotNull OperatingSystem operatingSystem) voidsetResponse(@NotNull Response response) voidsetRuntime(@NotNull SentryRuntime runtime) voidsetTrace(@NotNull SpanContext traceContext) intsize()voidwithResponse(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:
serializein interfaceJsonSerializable- Throws:
IOException
-