Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.6.0
Description
TTL state decorator uses original state with packed TTL and add TTL logic using time provider:
TtlValueState<V> implements ValueState<V> { ValueState<TtlValue<V>> underlyingState; InternalTimeService timeProvider; V value() { TtlValue<V> valueWithTtl = underlyingState.get(); // ttl logic here (e.g. update timestamp) return valueWithTtl.getValue(); } void update() { ... underlyingState.update(valueWithTtl) ... } }
TTL decorators are apply to state produced by normal state binder in its TTL wrapper from FLINK-9513
Attachments
Issue Links
- links to