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

[client] reduce the number of allocations #105

Merged
merged 10 commits into from
Apr 9, 2020
13 changes: 13 additions & 0 deletions src/main/java/com/timgroup/statsd/Message.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.timgroup.statsd;

interface Message {
/**
* Write this message to the provided {@link StringBuilder}. Will
* be called from the sender threads.
*
* @param builder
* StringBuilder the text representation will be written to.
*/
void writeTo(StringBuilder builder);
}

Loading