Class TtlUtils
java.lang.Object
org.apache.flink.runtime.state.ttl.TtlUtils
Common functions related to State TTL.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanexpired(long ts, long ttl, long currentTimestamp) static booleanexpired(long ts, long ttl, TtlTimeProvider timeProvider) static <V> booleanstatic <V> booleanexpired(TtlValue<V> ttlValue, long ttl, TtlTimeProvider timeProvider) static <V> TtlValue<V>wrapWithTs(V value, long ts)
-
Constructor Details
-
TtlUtils
public TtlUtils()
-
-
Method Details
-
expired
public static <V> boolean expired(@Nullable TtlValue<V> ttlValue, long ttl, TtlTimeProvider timeProvider) -
expired
-
expired
-
expired
public static boolean expired(long ts, long ttl, long currentTimestamp) -
wrapWithTs
-