Package io.sentry.protocol
Class Contexts
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.concurrent.ConcurrentHashMap<java.lang.String,java.lang.Object>
-
- io.sentry.protocol.Contexts
-
- All Implemented Interfaces:
JsonSerializable
,java.io.Serializable
,java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.Object>
,java.util.Map<java.lang.String,java.lang.Object>
public final class Contexts extends java.util.concurrent.ConcurrentHashMap<java.lang.String,java.lang.Object> implements JsonSerializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Contexts.Deserializer
-
Nested classes/interfaces inherited from class java.util.concurrent.ConcurrentHashMap
java.util.concurrent.ConcurrentHashMap.KeySetView<K extends java.lang.Object,V extends java.lang.Object>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable App
getApp()
@Nullable Browser
getBrowser()
@Nullable Device
getDevice()
@Nullable Gpu
getGpu()
@Nullable OperatingSystem
getOperatingSystem()
@Nullable SentryRuntime
getRuntime()
@Nullable SpanContext
getTrace()
void
serialize(@NotNull JsonObjectWriter writer, @NotNull ILogger logger)
void
setApp(@NotNull App app)
void
setBrowser(@NotNull Browser browser)
void
setDevice(@NotNull Device device)
void
setGpu(@NotNull Gpu gpu)
void
setOperatingSystem(@NotNull OperatingSystem operatingSystem)
void
setRuntime(@NotNull SentryRuntime runtime)
void
setTrace(@Nullable SpanContext traceContext)
-
Methods inherited from class java.util.concurrent.ConcurrentHashMap
clear, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, forEach, forEach, forEachEntry, forEachEntry, forEachKey, forEachKey, forEachValue, forEachValue, get, getOrDefault, hashCode, isEmpty, keys, keySet, keySet, mappingCount, merge, newKeySet, newKeySet, put, putAll, putIfAbsent, reduce, reduceEntries, reduceEntries, reduceEntriesToDouble, reduceEntriesToInt, reduceEntriesToLong, reduceKeys, reduceKeys, reduceKeysToDouble, reduceKeysToInt, reduceKeysToLong, reduceToDouble, reduceToInt, reduceToLong, reduceValues, reduceValues, reduceValuesToDouble, reduceValuesToInt, reduceValuesToLong, remove, remove, replace, replace, replaceAll, search, searchEntries, searchKeys, searchValues, size, toString, values
-
-
-
-
Constructor Detail
-
Contexts
public Contexts()
-
Contexts
public Contexts(@NotNull @NotNull Contexts contexts)
-
-
Method Detail
-
getTrace
@Nullable public @Nullable SpanContext getTrace()
-
setTrace
public void setTrace(@Nullable @Nullable SpanContext traceContext)
-
getApp
@Nullable public @Nullable App getApp()
-
setApp
public void setApp(@NotNull @NotNull App app)
-
getBrowser
@Nullable public @Nullable Browser getBrowser()
-
setBrowser
public void setBrowser(@NotNull @NotNull Browser browser)
-
getDevice
@Nullable public @Nullable Device getDevice()
-
setDevice
public void setDevice(@NotNull @NotNull Device device)
-
getOperatingSystem
@Nullable public @Nullable OperatingSystem getOperatingSystem()
-
setOperatingSystem
public void setOperatingSystem(@NotNull @NotNull OperatingSystem operatingSystem)
-
getRuntime
@Nullable public @Nullable SentryRuntime getRuntime()
-
setRuntime
public void setRuntime(@NotNull @NotNull SentryRuntime runtime)
-
getGpu
@Nullable public @Nullable Gpu getGpu()
-
setGpu
public void setGpu(@NotNull @NotNull Gpu gpu)
-
serialize
public void serialize(@NotNull @NotNull JsonObjectWriter writer, @NotNull @NotNull ILogger logger) throws java.io.IOException
- Specified by:
serialize
in interfaceJsonSerializable
- Throws:
java.io.IOException
-
-