Class TtlUtils

java.lang.Object
org.apache.flink.runtime.state.ttl.TtlUtils

public class TtlUtils extends Object
Common functions related to State TTL.
  • Constructor Details

    • TtlUtils

      public TtlUtils()
  • Method Details

    • 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)