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.StatsDChannelOpen 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.Stringaddress()voidclose()booleanconnect()voidsend(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:
connectin interfacecom.lightbend.cinnamon.chmetrics.statsd.StatsDChannel
-
address
public java.lang.String address()
- Specified by:
addressin interfacecom.lightbend.cinnamon.chmetrics.statsd.StatsDChannel
-
send
public void send(java.nio.ByteBuffer datagram) throws java.io.IOException- Specified by:
sendin interfacecom.lightbend.cinnamon.chmetrics.statsd.StatsDChannel- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacecom.lightbend.cinnamon.chmetrics.statsd.StatsDChannel- Throws:
java.io.IOException
-
-