Package io.sentry.cache
Class PersistingScopeObserver
java.lang.Object
io.sentry.ScopeObserverAdapter
io.sentry.cache.PersistingScopeObserver
- All Implemented Interfaces:
IScopeObserver
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
read
(@NotNull SentryOptions options, @NotNull String fileName, @NotNull Class<T> clazz) static <T,
R> T read
(@NotNull SentryOptions options, @NotNull String fileName, @NotNull Class<T> clazz, @Nullable JsonDeserializer<R> elementDeserializer) void
setBreadcrumbs
(@NotNull Collection<Breadcrumb> breadcrumbs) void
setContexts
(@NotNull Contexts contexts) void
void
setFingerprint
(@NotNull Collection<String> fingerprint) void
setLevel
(@Nullable SentryLevel level) void
setReplayId
(@NotNull SentryId replayId) void
setRequest
(@Nullable Request request) void
void
setTrace
(@Nullable SpanContext spanContext, @NotNull IScope scope) void
setTransaction
(@Nullable String transaction) void
static <T> void
store
(@NotNull SentryOptions options, T entity, @NotNull String fileName) Methods inherited from class io.sentry.ScopeObserverAdapter
addBreadcrumb, removeExtra, removeTag, setExtra, setTag
-
Field Details
-
SCOPE_CACHE
- See Also:
-
USER_FILENAME
- See Also:
-
BREADCRUMBS_FILENAME
- See Also:
-
TAGS_FILENAME
- See Also:
-
EXTRAS_FILENAME
- See Also:
-
CONTEXTS_FILENAME
- See Also:
-
REQUEST_FILENAME
- See Also:
-
LEVEL_FILENAME
- See Also:
-
FINGERPRINT_FILENAME
- See Also:
-
TRANSACTION_FILENAME
- See Also:
-
TRACE_FILENAME
- See Also:
-
REPLAY_FILENAME
- See Also:
-
-
Constructor Details
-
PersistingScopeObserver
-
-
Method Details
-
setUser
- Specified by:
setUser
in interfaceIScopeObserver
- Overrides:
setUser
in classScopeObserverAdapter
-
setBreadcrumbs
- Specified by:
setBreadcrumbs
in interfaceIScopeObserver
- Overrides:
setBreadcrumbs
in classScopeObserverAdapter
-
setTags
- Specified by:
setTags
in interfaceIScopeObserver
- Overrides:
setTags
in classScopeObserverAdapter
-
setExtras
- Specified by:
setExtras
in interfaceIScopeObserver
- Overrides:
setExtras
in classScopeObserverAdapter
-
setRequest
- Specified by:
setRequest
in interfaceIScopeObserver
- Overrides:
setRequest
in classScopeObserverAdapter
-
setFingerprint
- Specified by:
setFingerprint
in interfaceIScopeObserver
- Overrides:
setFingerprint
in classScopeObserverAdapter
-
setLevel
- Specified by:
setLevel
in interfaceIScopeObserver
- Overrides:
setLevel
in classScopeObserverAdapter
-
setTransaction
- Specified by:
setTransaction
in interfaceIScopeObserver
- Overrides:
setTransaction
in classScopeObserverAdapter
-
setTrace
- Specified by:
setTrace
in interfaceIScopeObserver
- Overrides:
setTrace
in classScopeObserverAdapter
-
setContexts
- Specified by:
setContexts
in interfaceIScopeObserver
- Overrides:
setContexts
in classScopeObserverAdapter
-
setReplayId
- Specified by:
setReplayId
in interfaceIScopeObserver
- Overrides:
setReplayId
in classScopeObserverAdapter
-
store
public static <T> void store(@NotNull @NotNull SentryOptions options, @NotNull T entity, @NotNull @NotNull String fileName) -
read
@Nullable public static <T> T read(@NotNull @NotNull SentryOptions options, @NotNull @NotNull String fileName, @NotNull @NotNull Class<T> clazz) -
read
@Nullable public static <T,R> T read(@NotNull @NotNull SentryOptions options, @NotNull @NotNull String fileName, @NotNull @NotNull Class<T> clazz, @Nullable @Nullable JsonDeserializer<R> elementDeserializer)
-