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.

@FunctionalInterface public interface MessageHandler
Callback interface for processing of messages that are read from a buffer.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onMessage(int msgTypeId, MutableDirectBuffer buffer, int index, int length)
    Called for the processing of each message read from a buffer in turn.
  • Method Details

    • onMessage

      void 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.