-
public final class ImmutableConfig
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ImmutableConfig(String apiKey, Boolean autoDetectErrors, ErrorTypes enabledErrorTypes, Boolean autoTrackSessions, ThreadSendPolicy sendThreads, Collection<Pattern> discardClasses, Collection<String> enabledReleaseStages, Collection<String> projectPackages, Set<BreadcrumbType> enabledBreadcrumbTypes, Set<Telemetry> telemetry, String releaseStage, Provider<String> buildUuid, String appVersion, Integer versionCode, String appType, Delivery delivery, EndpointConfiguration endpoints, Boolean persistUser, Long launchDurationMillis, Logger logger, Integer maxBreadcrumbs, Integer maxPersistedEvents, Integer maxPersistedSessions, Integer maxReportedThreads, Integer maxStringValueLength, Long threadCollectionTimeLimitMillis, Lazy<File> persistenceDirectory, Boolean sendLaunchCrashesSynchronously, Boolean attemptDeliveryOnCrash, Boolean generateAnonymousId, PackageInfo packageInfo, ApplicationInfo appInfo, Collection<Pattern> redactedKeys)
-
Method Summary
-
-
Constructor Detail
-
ImmutableConfig
ImmutableConfig(String apiKey, Boolean autoDetectErrors, ErrorTypes enabledErrorTypes, Boolean autoTrackSessions, ThreadSendPolicy sendThreads, Collection<Pattern> discardClasses, Collection<String> enabledReleaseStages, Collection<String> projectPackages, Set<BreadcrumbType> enabledBreadcrumbTypes, Set<Telemetry> telemetry, String releaseStage, Provider<String> buildUuid, String appVersion, Integer versionCode, String appType, Delivery delivery, EndpointConfiguration endpoints, Boolean persistUser, Long launchDurationMillis, Logger logger, Integer maxBreadcrumbs, Integer maxPersistedEvents, Integer maxPersistedSessions, Integer maxReportedThreads, Integer maxStringValueLength, Long threadCollectionTimeLimitMillis, Lazy<File> persistenceDirectory, Boolean sendLaunchCrashesSynchronously, Boolean attemptDeliveryOnCrash, Boolean generateAnonymousId, PackageInfo packageInfo, ApplicationInfo appInfo, Collection<Pattern> redactedKeys)
-
-
Method Detail
-
getAutoDetectErrors
final Boolean getAutoDetectErrors()
-
getEnabledErrorTypes
final ErrorTypes getEnabledErrorTypes()
-
getAutoTrackSessions
final Boolean getAutoTrackSessions()
-
getSendThreads
final ThreadSendPolicy getSendThreads()
-
getDiscardClasses
final Collection<Pattern> getDiscardClasses()
-
getEnabledReleaseStages
final Collection<String> getEnabledReleaseStages()
-
getProjectPackages
final Collection<String> getProjectPackages()
-
getEnabledBreadcrumbTypes
final Set<BreadcrumbType> getEnabledBreadcrumbTypes()
-
getTelemetry
final Set<Telemetry> getTelemetry()
-
getReleaseStage
final String getReleaseStage()
-
getBuildUuid
final Provider<String> getBuildUuid()
-
getAppVersion
final String getAppVersion()
-
getVersionCode
final Integer getVersionCode()
-
getAppType
final String getAppType()
-
getDelivery
final Delivery getDelivery()
-
getEndpoints
final EndpointConfiguration getEndpoints()
-
getPersistUser
final Boolean getPersistUser()
-
getLaunchDurationMillis
final Long getLaunchDurationMillis()
-
getMaxBreadcrumbs
final Integer getMaxBreadcrumbs()
-
getMaxPersistedEvents
final Integer getMaxPersistedEvents()
-
getMaxPersistedSessions
final Integer getMaxPersistedSessions()
-
getMaxReportedThreads
final Integer getMaxReportedThreads()
-
getMaxStringValueLength
final Integer getMaxStringValueLength()
-
getThreadCollectionTimeLimitMillis
final Long getThreadCollectionTimeLimitMillis()
-
getPersistenceDirectory
final Lazy<File> getPersistenceDirectory()
-
getSendLaunchCrashesSynchronously
final Boolean getSendLaunchCrashesSynchronously()
-
getAttemptDeliveryOnCrash
final Boolean getAttemptDeliveryOnCrash()
-
getGenerateAnonymousId
final Boolean getGenerateAnonymousId()
-
getPackageInfo
final PackageInfo getPackageInfo()
-
getAppInfo
final ApplicationInfo getAppInfo()
-
getRedactedKeys
final Collection<Pattern> getRedactedKeys()
-
shouldDiscardError
final Boolean shouldDiscardError(Throwable exc)
Returns whether the given throwable should be discarded based on the automatic data capture settings in Configuration.
-
shouldDiscardError
final Boolean shouldDiscardError(String errorClass)
Returns whether the given error should be discarded based on the automatic data capture settings in Configuration.
-
shouldDiscardSession
final Boolean shouldDiscardSession(Boolean autoCaptured)
Returns whether a session should be discarded based on the automatic data capture settings in Configuration.
-
shouldDiscardBreadcrumb
final Boolean shouldDiscardBreadcrumb(BreadcrumbType type)
Returns whether breadcrumbs with the given type should be discarded or not.
-
shouldDiscardByReleaseStage
final Boolean shouldDiscardByReleaseStage()
Returns whether errors/sessions should be discarded or not based on the enabled release stages.
-
-
-
-