Github user azagrebin commented on a diff in the pull request:
https://github.com/apache/flink/pull/6277#discussion_r200949235
--- Diff:
flink-core/src/main/java/org/apache/flink/api/common/state/StateTtlConfiguration.java
---
@@ -61,7 +61,15 @@
private final TtlTimeCharacteristic timeCharacteristic;
private final Time ttl;
- public TtlConfig(
+ /**
+ * Creates a new state ttl configuration.
+ *
+ * @param ttlUpdateType The ttl update type configures when to update
last access timestamp which prolongs state TTL.
+ * @param stateVisibility The state visibility configures whether
expired user value can be returned or not.
+ * @param timeCharacteristic The time characteristic configures time
scale to use for ttl.
+ * @param ttl The ttl time.
+ */
+ protected StateTtlConfiguration(
--- End diff --
I think this can be private because config is not supposed to be extended
atm and to enforce builder usage.
The parameter comments can go then to the corresponding public builder
setter methods as they face the user API.
---