Class TtlStateFactory<K,N,SV,TTLSV,S extends org.apache.flink.api.common.state.State,IS extends S>
- java.lang.Object
-
- org.apache.flink.runtime.state.ttl.TtlStateFactory<K,N,SV,TTLSV,S,IS>
-
public class TtlStateFactory<K,N,SV,TTLSV,S extends org.apache.flink.api.common.state.State,IS extends S> extends Object
This state factory wraps state objects, produced by backends, with TTL logic.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TtlStateFactory.TtlSerializer<T>
Serializer for user state value with TTL.static class
TtlStateFactory.TtlSerializerSnapshot<T>
ATypeSerializerSnapshot
for TtlSerializer.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <K,N,SV,TTLSV,S extends org.apache.flink.api.common.state.State,IS extends S>
IScreateStateAndWrapWithTtlIfEnabled(org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer, org.apache.flink.api.common.state.StateDescriptor<S,SV> stateDesc, KeyedStateBackend<K> stateBackend, TtlTimeProvider timeProvider)
-
-
-
Method Detail
-
createStateAndWrapWithTtlIfEnabled
public static <K,N,SV,TTLSV,S extends org.apache.flink.api.common.state.State,IS extends S> IS createStateAndWrapWithTtlIfEnabled(org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer, org.apache.flink.api.common.state.StateDescriptor<S,SV> stateDesc, KeyedStateBackend<K> stateBackend, TtlTimeProvider timeProvider) throws Exception
- Throws:
Exception
-
-