@PublicEvolving public static enum StateTtlConfig.UpdateType extends Enum<StateTtlConfig.UpdateType>
Enum Constant and Description |
---|
Disabled
TTL is disabled.
|
OnCreateAndWrite
Last access timestamp is initialised when state is created and updated on every write
operation.
|
OnReadAndWrite
The same as
OnCreateAndWrite but also updated on read. |
Modifier and Type | Method and Description |
---|---|
static StateTtlConfig.UpdateType |
valueOf(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.
|
public static final StateTtlConfig.UpdateType Disabled
public static final StateTtlConfig.UpdateType OnCreateAndWrite
public static final StateTtlConfig.UpdateType OnReadAndWrite
OnCreateAndWrite
but also updated on read.public static StateTtlConfig.UpdateType[] values()
for (StateTtlConfig.UpdateType c : StateTtlConfig.UpdateType.values()) System.out.println(c);
public static StateTtlConfig.UpdateType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.