Class UdpListener

  • All Implemented Interfaces:
    Listener

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

      Fields 
      Modifier and Type Field Description
      static com.swrve.ratelimitedlogger.RateLimitedLog RATE_LIMITED_LOG  
    • Constructor Summary

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

      • RATE_LIMITED_LOG

        public static final com.swrve.ratelimitedlogger.RateLimitedLog RATE_LIMITED_LOG
    • 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
      • getDescription

        public java.lang.String getDescription()
        Specified by:
        getDescription in interface Listener
      • getParsers

        public java.util.Collection<? extends Parser> getParsers()
        Specified by:
        getParsers in interface Listener