-
Notifications
You must be signed in to change notification settings - Fork 13.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FLINK-5175] StreamExecutionEnvironment's set function return this
instead of void
#2874
Conversation
The PR changes several We do not touch @public interfaces for 1.x releases and also try to avoid to modify I don't think that we can and should merge this PR. |
hi, @fhueske It's only better used, not important. You can close this. |
Thanks for the proposal @shijinkui. I agree that the changes might improve the usability a bit for some users. However, the improvements are not significant enough to break the API, IMO. I'll close this PR and the issue. |
@shijinkui I think these changes would be great for Flink 2.0 Can you add them to this list here? That is where we collect all API-.breaking changes that we want to add. Thanks! |
this
in…this
instead of void
Done. |
…eneration. This closes apache#2884 This closes apache#2874 (closing PR with Public API breaking changes)
…eneration. This closes apache#2884 This closes apache#2874 (closing PR with Public API breaking changes)
…eneration. This closes apache#2884 This closes apache#2874 (closing PR with Public API breaking changes)
…eneration. This closes apache#2884 This closes apache#2874 (closing PR with Public API breaking changes)
…eneration. This closes apache#2884 This closes apache#2874 (closing PR with Public API breaking changes)
StreamExecutionEnvironment's set function return
this
instead of voidfor example :
public void setNumberOfExecutionRetries(int numberOfExecutionRetries) {
config.setNumberOfExecutionRetries(numberOfExecutionRetries);
}
change to:
public StreamExecutionEnvironment setNumberOfExecutionRetries(int numberOfExecutionRetries) {
config.setNumberOfExecutionRetries(numberOfExecutionRetries);
return this;
}
General
this
instead of void")Documentation
Tests & Build
mvn clean verify
has been executed successfully locally or a Travis build has passed