public class StatsdPublisher extends Object
Constructor and Description |
---|
StatsdPublisher(InetAddress host,
int port)
Constructor that creates a connection to StatsD and sets the buffer size
|
StatsdPublisher(String host,
int port)
Constructor that creates a connection to StatsD
|
Modifier and Type | Method and Description |
---|---|
boolean |
send(String stat)
Adds an item to the buffer and calls the flush method
|
void |
setBufferSize(short packetBufferSize)
Sets allocated buffer size to be sent to StatsD
|
public StatsdPublisher(String host, int port) throws UnknownHostException, IOException
host
- port
- UnknownHostException
IOException
public StatsdPublisher(InetAddress host, int port) throws IOException
host
- port
- IOException
public void setBufferSize(short packetBufferSize)
packetBufferSize
- public boolean send(String stat)
stat
- Copyright © 2014–2015. All rights reserved.