azagrebin commented on a change in pull request #7921:
[FLINK-11825][StateBackends] Resolve name clash of StateTTL TimeCharacteristic
class
URL: https://github.com/apache/flink/pull/7921#discussion_r266201407
##########
File path:
flink-core/src/main/java/org/apache/flink/api/common/state/StateTtlConfig.java
##########
@@ -72,31 +74,41 @@
/**
* This option configures time scale to use for ttl.
+ *
+ * @deprecated will be removed in a future version in favor of {@link
TtlTimeCharacteristic}
*/
+ @Deprecated
public enum TimeCharacteristic {
/** Processing time, see also
<code>TimeCharacteristic.ProcessingTime</code>. */
ProcessingTime
}
+ /**
+ * This option configures time scale to use for ttl.
+ */
+ public enum TtlTimeCharacteristic {
+ /** Processing time, see also
<code>org.apache.flink.streaming.api.TimeCharacteristic.ProcessingTime</code>.
*/
+ ProcessingTime
+ }
+
private final UpdateType updateType;
private final StateVisibility stateVisibility;
- private final TimeCharacteristic timeCharacteristic;
+ private TtlTimeCharacteristic ttlTimeCharacteristic;
Review comment:
we can also keep it final
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services