Class TtlUtils
- java.lang.Object
-
- org.apache.flink.runtime.state.ttl.TtlUtils
-
public class TtlUtils extends Object
Common functions related to State TTL.
-
-
Constructor Summary
Constructors Constructor Description TtlUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
expired(long ts, long ttl, long currentTimestamp)
static boolean
expired(long ts, long ttl, TtlTimeProvider timeProvider)
static <V> boolean
expired(TtlValue<V> ttlValue, long ttl, long currentTimestamp)
static <V> boolean
expired(TtlValue<V> ttlValue, long ttl, TtlTimeProvider timeProvider)
static <V> TtlValue<V>
wrapWithTs(V value, long ts)
-
-
-
Method Detail
-
expired
public static <V> boolean expired(@Nullable TtlValue<V> ttlValue, long ttl, TtlTimeProvider timeProvider)
-
expired
public static <V> boolean expired(@Nullable TtlValue<V> ttlValue, long ttl, long currentTimestamp)
-
expired
public static boolean expired(long ts, long ttl, TtlTimeProvider timeProvider)
-
expired
public static boolean expired(long ts, long ttl, long currentTimestamp)
-
wrapWithTs
public static <V> TtlValue<V> wrapWithTs(V value, long ts)
-
-