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

Remove usage of atomics in RoutingContext handlers management #2546

Merged
merged 1 commit into from
Dec 22, 2023

Conversation

tsegismont
Copy link
Contributor

@tsegismont tsegismont commented Dec 22, 2023

Backported from #2545

Usage of handler collections does not require atomics and/or synchronization.

Instead of sharing an id generator for the various handler collections, we can use a list for storage and say the position in the list is the handler id.

…3#2545)

* Remove usage of atomics in RoutingContext handlers management

Supersedes vert-x3#2442

Usage of handler collections does not require atomics and/or synchronization.

Instead of sharing an id generator for the various handler collections, we can use a list for storage and say the position in the list is the handler id.

Signed-off-by: Thomas Segismont <tsegismont@gmail.com>

* Add Javadoc for HandlersCollection

Signed-off-by: Thomas Segismont <tsegismont@gmail.com>

* Rename HandlersCollection to HandlersList

Signed-off-by: Thomas Segismont <tsegismont@gmail.com>

---------

Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
@tsegismont tsegismont added this to the 4.5.2 milestone Dec 22, 2023
@tsegismont tsegismont merged commit f7671dd into vert-x3:4.x Dec 22, 2023
8 checks passed
@tsegismont tsegismont deleted the remove-handler-seq branch December 22, 2023 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant