JunRuiLee commented on code in PR #23758:
URL: https://github.com/apache/flink/pull/23758#discussion_r1400088967
##########
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java:
##########
@@ -663,10 +663,16 @@ public CheckpointingMode getCheckpointingMode() {
* org.apache.flink.runtime.state.CheckpointStorage} which configures how
and where state
* backends persist during a checkpoint.
*
+ * @deprecated The method is marked as deprecated because starting from
Flink 1.19, the usage of
+ * all complex Java objects related to configuration, including their
getter and setter
+ * methods, should be replaced by ConfigOption. In a future major
version of Flink, this
+ * method will be removed entirely. It is recommended to switch to
using the ConfigOptions
+ * provided for configuring state backend.
Review Comment:
Great idea, I'll add some sample code to demonstrate how to use ConfigOption
for better clarity, and I've also included links to the corresponding
documentation in the JavaDoc. And I will open a new PR soon to further update
the documentation based on these changes. Thank you for the suggestion.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]