Class TtlStateFactory<K,N,SV,TTLSV,S extends org.apache.flink.api.common.state.v2.State,IS>
java.lang.Object
org.apache.flink.runtime.state.v2.ttl.TtlStateFactory<K,N,SV,TTLSV,S,IS>
public class TtlStateFactory<K,N,SV,TTLSV,S extends org.apache.flink.api.common.state.v2.State,IS>
extends Object
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSerializer for user state value with TTL.static final classATypeSerializerSnapshotfor TtlSerializer. -
Method Summary
Modifier and TypeMethodDescriptionstatic <K,N, SV, TTLSV, S extends org.apache.flink.api.common.state.v2.State, IS extends S>
IScreateStateAndWrapWithTtlIfEnabled(N defaultNamespace, org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer, org.apache.flink.api.common.state.v2.StateDescriptor<SV> stateDesc, AsyncKeyedStateBackend<K> stateBackend, TtlTimeProvider timeProvider) static booleanisTtlStateSerializer(org.apache.flink.api.common.typeutils.TypeSerializer<?> typeSerializer)
-
Method Details
-
createStateAndWrapWithTtlIfEnabled
public static <K,N, IS createStateAndWrapWithTtlIfEnabledSV, TTLSV, S extends org.apache.flink.api.common.state.v2.State, IS extends S> (N defaultNamespace, org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer, org.apache.flink.api.common.state.v2.StateDescriptor<SV> stateDesc, AsyncKeyedStateBackend<K> stateBackend, TtlTimeProvider timeProvider) throws Exception - Throws:
Exception
-
isTtlStateSerializer
public static boolean isTtlStateSerializer(org.apache.flink.api.common.typeutils.TypeSerializer<?> typeSerializer)
-