Package org.agrona.concurrent
Interface ControlledMessageHandler
-
- 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 ControlledMessageHandler
Callback interface for processing of messages that are read from a buffer.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ControlledMessageHandler.Action
Action to be taken on return fromonMessage(int, MutableDirectBuffer, int, int)
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ControlledMessageHandler.Action
onMessage(int msgTypeId, MutableDirectBuffer buffer, int index, int length)
Called for the processing of each message read from a buffer in turn.
-
-
-
Method Detail
-
onMessage
ControlledMessageHandler.Action onMessage(int msgTypeId, MutableDirectBuffer buffer, int index, int length)
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.- Returns:
ControlledMessageHandler.Action
to be taken to control how the read progresses.
-
-