-
- All Implemented Interfaces:
-
java.io.Serializable,org.acra.config.Configuration
public final class LimiterConfiguration implements ConfigurationLimiter configuration
-
-
Field Summary
Fields Modifier and Type Field Description private final Booleanenabledprivate final TimeUnitperiodUnitprivate final Longperiodprivate final IntegeroverallLimitprivate final IntegerstacktraceLimitprivate final IntegerexceptionClassLimitprivate final IntegerfailedReportLimitprivate final StringignoredCrashToastprivate final BooleandeleteReportsOnAppUpdateprivate final BooleanresetLimitsOnAppUpdate
-
Constructor Summary
Constructors Constructor Description LimiterConfiguration(Boolean enabled, TimeUnit periodUnit, Long period, Integer overallLimit, Integer stacktraceLimit, Integer exceptionClassLimit, Integer failedReportLimit, String ignoredCrashToast, Boolean deleteReportsOnAppUpdate, Boolean resetLimitsOnAppUpdate)
-
Method Summary
Modifier and Type Method Description final BooleangetEnabled()enables this plugin final TimeUnitgetPeriodUnit()Unit of period final LonggetPeriod()number of periodUnits in which to limit reportsReports which have been collected before this will not be considered for any limits except failedReportLimit final IntegergetOverallLimit()general limit of reports per period final IntegergetStacktraceLimit()limit for reports with the same stacktrace per period final IntegergetExceptionClassLimit()limit for reports with the same exception class per period final IntegergetFailedReportLimit()limit for unsent reports to keep final StringgetIgnoredCrashToast()toast shown when a report was not collected or sent because a limit was exceeded final BooleangetDeleteReportsOnAppUpdate()This property can be used to determine whether old (out of date) reports should be sent or not. final BooleangetResetLimitsOnAppUpdate()Resetting limits after an app update allows you to see if a bug still exists. Booleanenabled()-
-
Method Detail
-
getEnabled
final Boolean getEnabled()
enables this plugin
-
getPeriodUnit
final TimeUnit getPeriodUnit()
Unit of period
-
getPeriod
final Long getPeriod()
number of periodUnits in which to limit reports
Reports which have been collected before this will not be considered for any limits except failedReportLimit
-
getOverallLimit
final Integer getOverallLimit()
general limit of reports per period
-
getStacktraceLimit
final Integer getStacktraceLimit()
limit for reports with the same stacktrace per period
-
getExceptionClassLimit
final Integer getExceptionClassLimit()
limit for reports with the same exception class per period
-
getFailedReportLimit
final Integer getFailedReportLimit()
limit for unsent reports to keep
-
getIgnoredCrashToast
final String getIgnoredCrashToast()
toast shown when a report was not collected or sent because a limit was exceeded
-
getDeleteReportsOnAppUpdate
final Boolean getDeleteReportsOnAppUpdate()
This property can be used to determine whether old (out of date) reports should be sent or not.
-
getResetLimitsOnAppUpdate
final Boolean getResetLimitsOnAppUpdate()
Resetting limits after an app update allows you to see if a bug still exists.
-
-
-
-