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

Support opitonal Closeable interface for other stateful objects #66

Open
jchrys opened this issue Apr 1, 2023 · 0 comments
Open

Support opitonal Closeable interface for other stateful objects #66

jchrys opened this issue Apr 1, 2023 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@jchrys
Copy link
Collaborator

jchrys commented Apr 1, 2023

While Connection already implements Closeable as a mandatory part of R2DBC, other stateful objects such as ConnectionFactory could benefit from providing a way to release their resources through implementing the Closeable interface.

This is an optional feature, so it is not mandatory to implement it according to the R2DBC specification.

However, it would be useful for those who need to manually close their resources without blocking the caller.

refer: https://r2dbc.io/spec/1.0.0.RELEASE/spec/html/#closeable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant