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 close method to StatsDClient and extend Closeable #33

Merged
merged 1 commit into from
Aug 7, 2017

Conversation

robinst
Copy link
Contributor

@robinst robinst commented Jul 6, 2017

This makes the client more straightforward to use in a Spring project as
a Bean. Spring detects methods named "close" or "shutdown" and calls
them when shutting down, see documentation.

This makes the client more straightforward to use in a Spring project as
a Bean. Spring detects methods named "close" or "shutdown" and calls
them when shutting down.
@@ -15,7 +17,7 @@
* @author Tom Denley
*
*/
public interface StatsDClient {
public interface StatsDClient extends Closeable {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

extends Closeable is not strictly necessary, but makes sense to add.

@masci masci modified the milestone: 2.4 Aug 7, 2017
Copy link
Contributor

@masci masci left a comment

Choose a reason for hiding this comment

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

👍 thanks!

@masci masci merged commit 21e9bcf into DataDog:master Aug 7, 2017
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