Package io.sentry.cache
Class PersistingOptionsObserver
java.lang.Object
io.sentry.cache.PersistingOptionsObserver
- All Implemented Interfaces:
IOptionsObserver
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Tread(@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) voidvoidsetEnvironment(@Nullable String environment) voidsetProguardUuid(@Nullable String proguardUuid) voidsetRelease(@Nullable String release) voidsetReplayErrorSampleRate(@Nullable Double replayErrorSampleRate) voidsetSdkVersion(@Nullable SdkVersion sdkVersion) void
-
Field Details
-
OPTIONS_CACHE
- See Also:
-
RELEASE_FILENAME
- See Also:
-
PROGUARD_UUID_FILENAME
- See Also:
-
SDK_VERSION_FILENAME
- See Also:
-
ENVIRONMENT_FILENAME
- See Also:
-
DIST_FILENAME
- See Also:
-
TAGS_FILENAME
- See Also:
-
REPLAY_ERROR_SAMPLE_RATE_FILENAME
- See Also:
-
-
Constructor Details
-
PersistingOptionsObserver
-
-
Method Details
-
setRelease
- Specified by:
setReleasein interfaceIOptionsObserver
-
setProguardUuid
- Specified by:
setProguardUuidin interfaceIOptionsObserver
-
setSdkVersion
- Specified by:
setSdkVersionin interfaceIOptionsObserver
-
setDist
- Specified by:
setDistin interfaceIOptionsObserver
-
setEnvironment
- Specified by:
setEnvironmentin interfaceIOptionsObserver
-
setTags
- Specified by:
setTagsin interfaceIOptionsObserver
-
setReplayErrorSampleRate
- Specified by:
setReplayErrorSampleRatein interfaceIOptionsObserver
-
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)
-