Package com.codahale.metrics.collectd
Class Sender
- java.lang.Object
-
- com.codahale.metrics.collectd.Sender
-
public class Sender extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
connect()
void
disconnect()
boolean
isConnected()
void
send(ByteBuffer buffer)
-
-
-
Constructor Detail
-
Sender
public Sender(String host, int port)
-
-
Method Detail
-
connect
public void connect() throws IOException
- Throws:
IOException
-
isConnected
public boolean isConnected()
-
send
public void send(ByteBuffer buffer) throws IOException
- Throws:
IOException
-
disconnect
public void disconnect() throws IOException
- Throws:
IOException
-
-