Package io.aeron.logbuffer
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.
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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumAction to be taken on return fromonFragment(DirectBuffer, int, int, Header). -
Method Summary
Modifier and TypeMethodDescriptiononFragment(DirectBuffer buffer, int offset, int length, Header header) Callback for handling fragments of data being read from a log.
-
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
Aeronclient 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.
-