Skip to content

[MRESOLVER-278] Session close and onClose hooks#201

Merged
cstamas merged 5 commits intoapache:masterfrom
cstamas:session-close-itself
Oct 14, 2022
Merged

[MRESOLVER-278] Session close and onClose hooks#201
cstamas merged 5 commits intoapache:masterfrom
cstamas:session-close-itself

Conversation

@cstamas
Copy link
Copy Markdown
Member

@cstamas cstamas commented Oct 11, 2022

Make session extend AutoCloseable, denoting that given
session instance is "done". This is integrator app
obligation to close the "done" session.

Also introdue onClose callbacks, that various components
may use to hook when session is marked "done" to
perform various cleanups.


https://issues.apache.org/jira/browse/MRESOLVER-278

@cstamas cstamas self-assigned this Oct 11, 2022
This was referenced Oct 11, 2022
@cstamas cstamas force-pushed the session-close-itself branch from 801995c to fee3994 Compare October 11, 2022 16:13
@cstamas cstamas changed the title Closeable session [MRESOLVER-278] Session close and onClose hooks Oct 11, 2022
@cstamas cstamas marked this pull request as ready for review October 11, 2022 16:14
@cstamas cstamas requested review from gnodet and michael-o October 11, 2022 16:14
@cstamas cstamas force-pushed the session-close-itself branch from dcd01a3 to 532aba5 Compare October 11, 2022 18:15
Make session have close() method, denoting that given
session instance is "done". This is integrator app
obligation ot invoke this method.

Also introdue onClose callbacks, that various components
may use to hook when session is marked "done" to
perform various cleanups.

---

https://issues.apache.org/jira/browse/MRESOLVER-278
@cstamas cstamas force-pushed the session-close-itself branch from 532aba5 to 393b2a7 Compare October 13, 2022 06:12
Comment thread maven-resolver-api/src/main/java/org/eclipse/aether/RepositorySystemSession.java Outdated
Comment thread maven-resolver-api/src/main/java/org/eclipse/aether/MultiRuntimeException.java Outdated
@cstamas cstamas requested a review from gnodet October 13, 2022 07:37
Copy link
Copy Markdown
Member

@michael-o michael-o left a comment

Choose a reason for hiding this comment

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

Not bad after all, but I'd like to have the Maven intergration to test with Redisson as well thoroughly.

@cstamas cstamas requested a review from michael-o October 14, 2022 16:31
Copy link
Copy Markdown
Member

@michael-o michael-o left a comment

Choose a reason for hiding this comment

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

All clear now

@cstamas cstamas merged commit b1ed809 into apache:master Oct 14, 2022
@cstamas cstamas deleted the session-close-itself branch October 14, 2022 20:08
@jira-importer
Copy link
Copy Markdown

Resolve #954

3 similar comments
@jira-importer
Copy link
Copy Markdown

Resolve #954

@jira-importer
Copy link
Copy Markdown

Resolve #954

@jira-importer
Copy link
Copy Markdown

Resolve #954

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.

4 participants