Interface Dispatchable

  • All Known Implementing Classes:
    IpfixUdpParser, Netflow5UdpParser, Netflow9UdpParser, SFlowUdpParser

    public interface Dispatchable
    A listener may define multiple parsers, in order to dispatch it to only one queue, the parser must decide if it can handle the incoming data. A parser implementing the Dispatchable interface is capable of making this decision.
    Author:
    mvrueden
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean handles​(io.netty.buffer.ByteBuf buffer)
      Returns true if the implementor can handle the incoming data, otherwise false.
    • Method Detail

      • handles

        boolean handles​(io.netty.buffer.ByteBuf buffer)
        Returns true if the implementor can handle the incoming data, otherwise false.
        Parameters:
        buffer - Representing the incoming data
        Returns:
        true if the implementor can handle the data, otherwise false.