-
- All Implemented Interfaces:
-
org.acra.config.ConfigurationBuilder
public final class LimiterConfigurationBuilder implements ConfigurationBuilderClass generated based on AcraLimiter (Jun 6, 2021 5:03:39 PM)
-
-
Field Summary
Fields Modifier and Type Field Description private Contextcontextprivate Booleanenabledprivate TimeUnitperiodUnitprivate Longperiodprivate IntegeroverallLimitprivate IntegerstacktraceLimitprivate IntegerexceptionClassLimitprivate IntegerfailedReportLimitprivate StringignoredCrashToastprivate BooleandeleteReportsOnAppUpdateprivate BooleanresetLimitsOnAppUpdate
-
Constructor Summary
Constructors Constructor Description LimiterConfigurationBuilder(Context arg0)
-
Method Summary
Modifier and Type Method Description final ContextgetContext()final UnitsetContext(Context context)final BooleangetEnabled()final UnitsetEnabled(Boolean enabled)final TimeUnitgetPeriodUnit()Unit of {@link org.acra.annotation. final UnitsetPeriodUnit(TimeUnit periodUnit)Unit of {@link org.acra.annotation. final LonggetPeriod()Reports which have been collected before this will not be considered for any limits except {@link org.acra.annotation. final UnitsetPeriod(Long period)Reports which have been collected before this will not be considered for any limits except {@link org.acra.annotation. final IntegergetOverallLimit()general limit of reports final UnitsetOverallLimit(Integer overallLimit)general limit of reports final IntegergetStacktraceLimit()limit for reports with the same stacktrace final UnitsetStacktraceLimit(Integer stacktraceLimit)limit for reports with the same stacktrace final IntegergetExceptionClassLimit()limit for reports with the same exception class final UnitsetExceptionClassLimit(Integer exceptionClassLimit)limit for reports with the same exception class final IntegergetFailedReportLimit()limit for unsent reports final UnitsetFailedReportLimit(Integer failedReportLimit)limit for unsent reports final StringgetIgnoredCrashToast()toast shown when a report was not collected or sent because a limit was exceeded final UnitsetIgnoredCrashToast(String ignoredCrashToast)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 UnitsetDeleteReportsOnAppUpdate(Boolean deleteReportsOnAppUpdate)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. final UnitsetResetLimitsOnAppUpdate(Boolean resetLimitsOnAppUpdate)Resetting limits after an app update allows you to see if a bug still exists. final LimiterConfigurationBuilderwithEnabled(Boolean enabled)final LimiterConfigurationBuilderwithPeriodUnit(TimeUnit periodUnit)Unit of {@link org.acra.annotation. final LimiterConfigurationBuilderwithPeriod(Long period)Reports which have been collected before this will not be considered for any limits except {@link org.acra.annotation. final LimiterConfigurationBuilderwithOverallLimit(Integer overallLimit)general limit of reports final LimiterConfigurationBuilderwithStacktraceLimit(Integer stacktraceLimit)limit for reports with the same stacktrace final LimiterConfigurationBuilderwithExceptionClassLimit(Integer exceptionClassLimit)limit for reports with the same exception class final LimiterConfigurationBuilderwithFailedReportLimit(Integer failedReportLimit)limit for unsent reports final LimiterConfigurationBuilderwithIgnoredCrashToast(String ignoredCrashToast)toast shown when a report was not collected or sent because a limit was exceeded final LimiterConfigurationBuilderwithResIgnoredCrashToast(@StringRes() Integer resIgnoredCrashToast)toast shown when a report was not collected or sent because a limit was exceeded final LimiterConfigurationBuilderwithDeleteReportsOnAppUpdate(Boolean deleteReportsOnAppUpdate)This property can be used to determine whether old (out of date) reports should be sent or not. final LimiterConfigurationBuilderwithResetLimitsOnAppUpdate(Boolean resetLimitsOnAppUpdate)Resetting limits after an app update allows you to see if a bug still exists. LimiterConfigurationbuild()-
-
Constructor Detail
-
LimiterConfigurationBuilder
LimiterConfigurationBuilder(Context arg0)
-
-
Method Detail
-
getContext
final Context getContext()
-
setContext
final Unit setContext(Context context)
-
getEnabled
final Boolean getEnabled()
-
setEnabled
final Unit setEnabled(Boolean enabled)
-
getPeriodUnit
final TimeUnit getPeriodUnit()
Unit of {@link org.acra.annotation.AcraLimiter#period()}
-
setPeriodUnit
final Unit setPeriodUnit(TimeUnit periodUnit)
Unit of {@link org.acra.annotation.AcraLimiter#period()}
-
getPeriod
final Long getPeriod()
Reports which have been collected before this will not be considered for any limits except {@link org.acra.annotation.AcraLimiter#failedReportLimit()}
-
setPeriod
final Unit setPeriod(Long period)
Reports which have been collected before this will not be considered for any limits except {@link org.acra.annotation.AcraLimiter#failedReportLimit()}
-
getOverallLimit
final Integer getOverallLimit()
general limit of reports
-
setOverallLimit
final Unit setOverallLimit(Integer overallLimit)
general limit of reports
-
getStacktraceLimit
final Integer getStacktraceLimit()
limit for reports with the same stacktrace
-
setStacktraceLimit
final Unit setStacktraceLimit(Integer stacktraceLimit)
limit for reports with the same stacktrace
-
getExceptionClassLimit
final Integer getExceptionClassLimit()
limit for reports with the same exception class
-
setExceptionClassLimit
final Unit setExceptionClassLimit(Integer exceptionClassLimit)
limit for reports with the same exception class
-
getFailedReportLimit
final Integer getFailedReportLimit()
limit for unsent reports
-
setFailedReportLimit
final Unit setFailedReportLimit(Integer failedReportLimit)
limit for unsent reports
-
getIgnoredCrashToast
final String getIgnoredCrashToast()
toast shown when a report was not collected or sent because a limit was exceeded
-
setIgnoredCrashToast
final Unit setIgnoredCrashToast(String ignoredCrashToast)
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.
-
setDeleteReportsOnAppUpdate
final Unit setDeleteReportsOnAppUpdate(Boolean deleteReportsOnAppUpdate)
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.
-
setResetLimitsOnAppUpdate
final Unit setResetLimitsOnAppUpdate(Boolean resetLimitsOnAppUpdate)
Resetting limits after an app update allows you to see if a bug still exists.
-
withEnabled
final LimiterConfigurationBuilder withEnabled(Boolean enabled)
-
withPeriodUnit
final LimiterConfigurationBuilder withPeriodUnit(TimeUnit periodUnit)
Unit of {@link org.acra.annotation.AcraLimiter#period()}
- Parameters:
periodUnit- a time unit
-
withPeriod
final LimiterConfigurationBuilder withPeriod(Long period)
Reports which have been collected before this will not be considered for any limits except {@link org.acra.annotation.AcraLimiter#failedReportLimit()}
- Parameters:
period- number of {@link org.acra.annotation.
-
withOverallLimit
final LimiterConfigurationBuilder withOverallLimit(Integer overallLimit)
general limit of reports
- Parameters:
overallLimit- maximum number of reports per period
-
withStacktraceLimit
final LimiterConfigurationBuilder withStacktraceLimit(Integer stacktraceLimit)
limit for reports with the same stacktrace
- Parameters:
stacktraceLimit- maximum number of reports with the same stacktrace per period
-
withExceptionClassLimit
final LimiterConfigurationBuilder withExceptionClassLimit(Integer exceptionClassLimit)
limit for reports with the same exception class
- Parameters:
exceptionClassLimit- maximum number of reports with the same exception class per period
-
withFailedReportLimit
final LimiterConfigurationBuilder withFailedReportLimit(Integer failedReportLimit)
limit for unsent reports
- Parameters:
failedReportLimit- maximum number of unsent reports to keep
-
withIgnoredCrashToast
final LimiterConfigurationBuilder withIgnoredCrashToast(String ignoredCrashToast)
toast shown when a report was not collected or sent because a limit was exceeded
- Parameters:
ignoredCrashToast- Resource id for the toast shown when a crash was ignored
-
withResIgnoredCrashToast
final LimiterConfigurationBuilder withResIgnoredCrashToast(@StringRes() Integer resIgnoredCrashToast)
toast shown when a report was not collected or sent because a limit was exceeded
- Parameters:
resIgnoredCrashToast- Resource id for the toast shown when a crash was ignored
-
withDeleteReportsOnAppUpdate
final LimiterConfigurationBuilder withDeleteReportsOnAppUpdate(Boolean deleteReportsOnAppUpdate)
This property can be used to determine whether old (out of date) reports should be sent or not.
- Parameters:
deleteReportsOnAppUpdate- if ACRA should delete any unsent reports on startup if the application has been updated.
-
withResetLimitsOnAppUpdate
final LimiterConfigurationBuilder withResetLimitsOnAppUpdate(Boolean resetLimitsOnAppUpdate)
Resetting limits after an app update allows you to see if a bug still exists.
- Parameters:
resetLimitsOnAppUpdate- if ACRA should reset all limits on startup if the application has been updated.
-
build
LimiterConfiguration build()
-
-
-
-