Interface UdpNameResolutionTransport.UdpFrameHandler

Enclosing class:
UdpNameResolutionTransport
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface UdpNameResolutionTransport.UdpFrameHandler
Handler for processing the received frames.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    onFrame(UnsafeBuffer unsafeBuffer, int length, InetSocketAddress srcAddress, long nowMs)
    Callback for processing the received frames.
  • Method Details

    • onFrame

      int onFrame(UnsafeBuffer unsafeBuffer, int length, InetSocketAddress srcAddress, long nowMs)
      Callback for processing the received frames.
      Parameters:
      unsafeBuffer - containing the received frame.
      length - of the frame in the buffer.
      srcAddress - the frame came from.
      nowMs - current time.
      Returns:
      the number of bytes received.