@PublicEvolving public class StateTtlConfig extends Object implements Serializable
Note: The map state with TTL currently supports null
user values only if the user
value serializer can handle null
values. If the serializer does not support null
values, it can be wrapped with NullableSerializer
at the cost of an extra byte in
the serialized form.
Modifier and Type | Class and Description |
---|---|
static class |
StateTtlConfig.Builder
Builder for the
StateTtlConfig . |
static class |
StateTtlConfig.CleanupStrategies
TTL cleanup strategies.
|
static class |
StateTtlConfig.IncrementalCleanupStrategy
Configuration of cleanup strategy while taking the full snapshot.
|
static class |
StateTtlConfig.RocksdbCompactFilterCleanupStrategy
Configuration of cleanup strategy using custom compaction filter in RocksDB.
|
static class |
StateTtlConfig.StateVisibility
This option configures whether expired user value can be returned or not.
|
static class |
StateTtlConfig.TtlTimeCharacteristic
This option configures time scale to use for ttl.
|
static class |
StateTtlConfig.UpdateType
This option value configures when to update last access timestamp which prolongs state TTL.
|
Modifier and Type | Field and Description |
---|---|
static StateTtlConfig |
DISABLED |
Modifier and Type | Method and Description |
---|---|
StateTtlConfig.CleanupStrategies |
getCleanupStrategies() |
StateTtlConfig.StateVisibility |
getStateVisibility() |
Time |
getTtl() |
StateTtlConfig.TtlTimeCharacteristic |
getTtlTimeCharacteristic() |
StateTtlConfig.UpdateType |
getUpdateType() |
boolean |
isEnabled() |
static StateTtlConfig.Builder |
newBuilder(Time ttl) |
String |
toString() |
public static final StateTtlConfig DISABLED
@Nonnull public StateTtlConfig.UpdateType getUpdateType()
@Nonnull public StateTtlConfig.StateVisibility getStateVisibility()
@Nonnull public StateTtlConfig.TtlTimeCharacteristic getTtlTimeCharacteristic()
public boolean isEnabled()
@Nonnull public StateTtlConfig.CleanupStrategies getCleanupStrategies()
@Nonnull public static StateTtlConfig.Builder newBuilder(@Nonnull Time ttl)
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.