Enum Class BgTime
- All Implemented Interfaces:
Serializable, Comparable<BgTime>, Constable
Defines the background execution intervals and their corresponding internal
validation check timers for the synchronization tasks.
This enum maps human-readable interval names to explicit millisecond values, allowing the background scheduler to determine when a synchronization run is due and how frequently it should verify the execution state.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionExecution interval set to occur daily.Execution interval set to occur hourly.Execution interval of 1 minute.Execution interval of 30 minutes.Execution interval of 5 minutes.Execution interval set to occur monthly.Execution interval set to occur weekly. -
Method Summary
Modifier and TypeMethodDescriptionstatic BgTimeResolves a matching background time configuration based on its localized display name.longGets the specific loop cycle or validation check interval duration.getName()Gets the localized display name of this interval configuration.static String[]getNames()Extracts and retrieves the localized display names of all available background intervals.longgetTime()Gets the total execution interval duration.static BgTimeReturns the enum constant of this class with the specified name.static BgTime[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MIN_1
Execution interval of 1 minute. -
MIN_5
Execution interval of 5 minutes. -
MIN_30
Execution interval of 30 minutes. -
HOURLY
Execution interval set to occur hourly. -
DAYLY
Execution interval set to occur daily. -
WEEKLY
Execution interval set to occur weekly. -
MONTHLY
Execution interval set to occur monthly.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getNames
Extracts and retrieves the localized display names of all available background intervals.This array is typically utilized to populate UI dropdown menus or configuration listings.
- Returns:
- a String array containing the human-readable names in the exact order of definition
-
get
-
getTime
public long getTime()Gets the total execution interval duration.- Returns:
- the interval time value represented in milliseconds
-
getName
Gets the localized display name of this interval configuration.- Returns:
- the human-readable interval text
-
getCheckTime
public long getCheckTime()Gets the specific loop cycle or validation check interval duration.- Returns:
- the check cycle time value represented in milliseconds
-