Interface ControlledFragmentHandler

All Known Implementing Classes:
ControlledEgressAdapter, ControlledFragmentAssembler, EgressPoller, ImageControlledFragmentAssembler, RecordingEventsPoller
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 interface ControlledFragmentHandler
Handler for reading data that is coming from a log buffer. The frame will either contain a whole message or a fragment of a message to be reassembled. Messages are fragmented if greater than the frame for MTU in length.
  • Method Details

    • onFragment

      ControlledFragmentHandler.Action onFragment(DirectBuffer buffer, int offset, int length, Header header)
      Callback for handling fragments of data being read from a log.

      Within this callback reentrant calls to the Aeron client are not permitted and will result in undefined behaviour.

      Parameters:
      buffer - containing the data.
      offset - at which the data begins.
      length - of the data in bytes.
      header - representing the metadata for the data.
      Returns:
      The action to be taken with regard to the stream position after the callback.