Enum StateTtlConfig.UpdateType
- java.lang.Object
-
- java.lang.Enum<StateTtlConfig.UpdateType>
-
- org.apache.flink.api.common.state.StateTtlConfig.UpdateType
-
- All Implemented Interfaces:
Serializable,Comparable<StateTtlConfig.UpdateType>
- Enclosing class:
- StateTtlConfig
public static enum StateTtlConfig.UpdateType extends Enum<StateTtlConfig.UpdateType>
This option value configures when to update last access timestamp which prolongs state TTL.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DisabledTTL is disabled.OnCreateAndWriteLast access timestamp is initialised when state is created and updated on every write operation.OnReadAndWriteThe same asOnCreateAndWritebut also updated on read.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StateTtlConfig.UpdateTypevalueOf(String name)Returns the enum constant of this type with the specified name.static StateTtlConfig.UpdateType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Disabled
public static final StateTtlConfig.UpdateType Disabled
TTL is disabled. State does not expire.
-
OnCreateAndWrite
public static final StateTtlConfig.UpdateType OnCreateAndWrite
Last access timestamp is initialised when state is created and updated on every write operation.
-
OnReadAndWrite
public static final StateTtlConfig.UpdateType OnReadAndWrite
The same asOnCreateAndWritebut also updated on read.
-
-
Method Detail
-
values
public static StateTtlConfig.UpdateType[] 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 (StateTtlConfig.UpdateType c : StateTtlConfig.UpdateType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StateTtlConfig.UpdateType 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
-
-