Package com.lightbend.cinnamon.datadog
Class UnixDomainSocketChannel
- java.lang.Object
-
- com.lightbend.cinnamon.datadog.UnixDomainSocketChannel
-
- All Implemented Interfaces:
com.lightbend.cinnamon.chmetrics.statsd.StatsDChannel
public class UnixDomainSocketChannel extends java.lang.Object implements com.lightbend.cinnamon.chmetrics.statsd.StatsDChannel
Open a unix domain datagram socket for StatsD.
-
-
Constructor Summary
Constructors Constructor Description UnixDomainSocketChannel(java.lang.String key, com.typesafe.config.Config config, LoggingProvider logging)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
address()
void
close()
boolean
connect()
void
send(java.nio.ByteBuffer datagram)
-
-
-
Constructor Detail
-
UnixDomainSocketChannel
public UnixDomainSocketChannel(java.lang.String key, com.typesafe.config.Config config, LoggingProvider logging) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
connect
public boolean connect()
- Specified by:
connect
in interfacecom.lightbend.cinnamon.chmetrics.statsd.StatsDChannel
-
address
public java.lang.String address()
- Specified by:
address
in interfacecom.lightbend.cinnamon.chmetrics.statsd.StatsDChannel
-
send
public void send(java.nio.ByteBuffer datagram) throws java.io.IOException
- Specified by:
send
in interfacecom.lightbend.cinnamon.chmetrics.statsd.StatsDChannel
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacecom.lightbend.cinnamon.chmetrics.statsd.StatsDChannel
- Throws:
java.io.IOException
-
-