Class SFlowUdpParser

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean getDnsLookupsEnabled()  
      java.lang.String getName()  
      int getThreads()  
      boolean handles​(io.netty.buffer.ByteBuf buffer)
      Returns true if the implementor can handle the incoming data, otherwise false.
      java.util.concurrent.CompletableFuture<?> parse​(io.netty.buffer.ByteBuf buffer, java.net.InetSocketAddress remoteAddress, java.net.InetSocketAddress localAddress)  
      void setDnsLookupsEnabled​(boolean dnsLookupsEnabled)  
      void setThreads​(int threads)  
      void start​(java.util.concurrent.ScheduledExecutorService executorService)  
      void stop()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • handles

        public boolean handles​(io.netty.buffer.ByteBuf buffer)
        Description copied from interface: Dispatchable
        Returns true if the implementor can handle the incoming data, otherwise false.
        Specified by:
        handles in interface Dispatchable
        Parameters:
        buffer - Representing the incoming data
        Returns:
        true if the implementor can handle the data, otherwise false.
      • parse

        public java.util.concurrent.CompletableFuture<?> parse​(io.netty.buffer.ByteBuf buffer,
                                                               java.net.InetSocketAddress remoteAddress,
                                                               java.net.InetSocketAddress localAddress)
                                                        throws java.lang.Exception
        Specified by:
        parse in interface UdpParser
        Throws:
        java.lang.Exception
      • getDnsLookupsEnabled

        public boolean getDnsLookupsEnabled()
      • setDnsLookupsEnabled

        public void setDnsLookupsEnabled​(boolean dnsLookupsEnabled)
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface Parser
      • start

        public void start​(java.util.concurrent.ScheduledExecutorService executorService)
        Specified by:
        start in interface Parser
      • stop

        public void stop()
        Specified by:
        stop in interface Parser
      • getThreads

        public int getThreads()
      • setThreads

        public void setThreads​(int threads)