Class UdpListener

  • All Implemented Interfaces:
    Listener

    public class UdpListener
    extends java.lang.Object
    implements Listener
    • Constructor Summary

      Constructors 
      Constructor Description
      UdpListener​(java.lang.String name, java.util.List<UdpParser> parsers, com.codahale.metrics.MetricRegistry metrics)  
    • Constructor Detail

      • UdpListener

        public UdpListener​(java.lang.String name,
                           java.util.List<UdpParser> parsers,
                           com.codahale.metrics.MetricRegistry metrics)
    • Method Detail

      • start

        public void start()
                   throws java.lang.InterruptedException
        Specified by:
        start in interface Listener
        Throws:
        java.lang.InterruptedException
      • stop

        public void stop()
                  throws java.lang.InterruptedException
        Specified by:
        stop in interface Listener
        Throws:
        java.lang.InterruptedException
      • getHost

        public java.lang.String getHost()
      • setHost

        public void setHost​(java.lang.String host)
      • setPort

        public void setPort​(int port)
      • getPort

        public int getPort()
      • getMaxPacketSize

        public int getMaxPacketSize()
      • setMaxPacketSize

        public void setMaxPacketSize​(int maxPacketSize)
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface Listener