Class TtlValue<T>

  • Type Parameters:
    T - Type of the user value of state with TTL
    All Implemented Interfaces:
    Serializable

    public class TtlValue<T>
    extends Object
    implements Serializable
    This class wraps user value of state with TTL. Visibility is public for usage with external tools.
    See Also:
    Serialized Form
    • Constructor Detail

      • TtlValue

        public TtlValue​(@Nullable
                        T userValue,
                        long lastAccessTimestamp)
    • Method Detail

      • getUserValue

        @Nullable
        public T getUserValue()
      • getLastAccessTimestamp

        public long getLastAccessTimestamp()