Package org.agrona.concurrent
Interface MessageHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Callback interface for processing of messages that are read from a buffer.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonMessage(int msgTypeId, MutableDirectBuffer buffer, int index, int length) Called for the processing of each message read from a buffer in turn.
-
Method Details
-
onMessage
Called for the processing of each message read from a buffer in turn.- Parameters:
msgTypeId- type of the encoded message.buffer- containing the encoded message.index- at which the encoded message begins.length- in bytes of the encoded message.
-