MCPcopy
hub / github.com/statsd/statsd / setBufferSize

Method setBufferSize

examples/StatsdClient.java:81–86  ·  view source on GitHub ↗
(short packetBufferSize)

Source from the content-addressed store, hash-verified

79 }
80
81 public synchronized void setBufferSize(short packetBufferSize) {
82 if(sendBuffer != null) {
83 flush();
84 }
85 sendBuffer = ByteBuffer.allocate(packetBufferSize);
86 }
87
88 public synchronized void enableMultiMetrics(boolean enable) {
89 multi_metrics = enable;

Callers 1

StatsdClientMethod · 0.95

Calls 1

flushMethod · 0.95

Tested by

no test coverage detected