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

Add a close method to AsyncMultiMap #2270

Closed

Conversation

tsegismont
Copy link
Contributor

This allows cluster managers to free resources they use to maintain the state.

Needed for vert-x3/issues#316

This allows cluster managers to free resources they use to maintain the state.

Needed for vert-x3/issues#316

Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
@tsegismont
Copy link
Contributor Author

@vietj PTAL

@vietj
Copy link
Member

vietj commented Jan 10, 2018

how did it work before without a close method ?

@vietj
Copy link
Member

vietj commented Jan 10, 2018

can we try instead to use java refs ? we have several places in vertx where we do that for better usability

@tsegismont
Copy link
Contributor Author

tsegismont commented Jan 10, 2018

how did it work before without a close method ?

ClusteredEventBus just calls it once. The problem would happen only if a user creates many multimaps for his own purposes.

@tsegismont
Copy link
Contributor Author

can we try instead to use java refs ?

Sorry I can't see what you mean... :(

@vietj
Copy link
Member

vietj commented Jan 10, 2018

weak references, look at NetClientImpl

@tsegismont
Copy link
Contributor Author

tsegismont commented Jan 10, 2018 via email

@vietj
Copy link
Member

vietj commented Jan 10, 2018

I think you can on the map proxy itself as only the client has a ref to it, can't you ?

@tsegismont
Copy link
Contributor Author

tsegismont commented Jan 10, 2018 via email

@tsegismont
Copy link
Contributor Author

@vietj can you take another look before we close the 3.5.1 round? Thanks

@tsegismont tsegismont removed the request for review from vietj September 28, 2018 07:51
@tsegismont tsegismont closed this Sep 28, 2018
@tsegismont tsegismont deleted the asyncmultimap-close branch September 28, 2018 07:52
@tsegismont
Copy link
Contributor Author

vert-x3/issues#316 closed (won't fix)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants