Skip to content
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

Code cleanup, removing deprecations, for class Pool, #8458

Merged
merged 2 commits into from
Aug 13, 2022

Conversation

sbordet
Copy link
Contributor

@sbordet sbordet commented Aug 12, 2022

ConnectionPool and its implementations.

Removed DuplexHttpDestination and MultiplexHttpDestination.

Signed-off-by: Simone Bordet simone.bordet@gmail.com

ConnectionPool and its implementations.

Removed DuplexHttpDestination and MultiplexHttpDestination.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
@sbordet sbordet requested review from lorban and removed request for lorban August 12, 2022 20:31
Copy link
Contributor

@lorban lorban left a comment

Choose a reason for hiding this comment

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

LGTM except for a couple niggles.

}

protected int getMaxUsageCount()
@ManagedAttribute(value = "The maximum amount of times a connection is used before it gets closed")
Copy link
Contributor

Choose a reason for hiding this comment

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

The fact that it defaults to 0 and that 0- values disable the mechanism should be documented.

*/
@Deprecated
protected int getMaxMultiplex(T pooled)
Copy link
Contributor

Choose a reason for hiding this comment

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

Since you added a constructor that takes a ToIntFunction, there is no need to keep this method as protected anymore, it can be made private.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
@sbordet sbordet merged commit 21fce4f into jetty-12.0.x Aug 13, 2022
@sbordet sbordet deleted the jetty-12.0.x-review-connectionpool branch August 13, 2022 08:01
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