Enum PeriodicCacheReloadTrigger.ScheduleMode
- java.lang.Object
-
- java.lang.Enum<PeriodicCacheReloadTrigger.ScheduleMode>
-
- org.apache.flink.table.connector.source.lookup.cache.trigger.PeriodicCacheReloadTrigger.ScheduleMode
-
- All Implemented Interfaces:
Serializable,Comparable<PeriodicCacheReloadTrigger.ScheduleMode>
- Enclosing class:
- PeriodicCacheReloadTrigger
@PublicEvolving public static enum PeriodicCacheReloadTrigger.ScheduleMode extends Enum<PeriodicCacheReloadTrigger.ScheduleMode>
Defines the mode how to schedule cache reloads. Seeand {@link ScheduledExecutorService#scheduleAtFixedRate(Runnable, long, long, TimeUnit)}.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FIXED_DELAYFIXED_RATE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PeriodicCacheReloadTrigger.ScheduleModevalueOf(String name)Returns the enum constant of this type with the specified name.static PeriodicCacheReloadTrigger.ScheduleMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FIXED_DELAY
public static final PeriodicCacheReloadTrigger.ScheduleMode FIXED_DELAY
-
FIXED_RATE
public static final PeriodicCacheReloadTrigger.ScheduleMode FIXED_RATE
-
-
Method Detail
-
values
public static PeriodicCacheReloadTrigger.ScheduleMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PeriodicCacheReloadTrigger.ScheduleMode c : PeriodicCacheReloadTrigger.ScheduleMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PeriodicCacheReloadTrigger.ScheduleMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
-