Class 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.
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 interface com.lightbend.cinnamon.chmetrics.statsd.StatsDChannel
      • address

        public java.lang.String address()
        Specified by:
        address in interface com.lightbend.cinnamon.chmetrics.statsd.StatsDChannel
      • send

        public void send​(java.nio.ByteBuffer datagram)
                  throws java.io.IOException
        Specified by:
        send in interface com.lightbend.cinnamon.chmetrics.statsd.StatsDChannel
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface com.lightbend.cinnamon.chmetrics.statsd.StatsDChannel
        Throws:
        java.io.IOException