Skip to content

Conversation

@eeyrikh
Copy link

@eeyrikh eeyrikh commented Oct 4, 2022

No description provided.

private int maxConnectionsPerRoute;
private int connectionRequestTimeout;
private int connectTimeout;
private int socketTimeout;
Copy link
Contributor

@korvalanni korvalanni Dec 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

можно сделать поля final, а новые опциональными для обратной совместимости

private int socketTimeout;

public ConnectionSettings(int maxTotalConnections, int maxConnectionsPerRoute) {
public ConnectionSettings(int maxTotalConnections, int maxConnectionsPerRoute,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ломается обратная совместимость, лучше добавить конструктор рядом

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants