Interface MessageReceiver


@Deprecated @API public interface MessageReceiver
Deprecated.
since 2026.2.0. This interface is part of the legacy API and is retained for backward compatibility. New implementations should use KafkaMessageReceiver instead, which provides a context-based API for message processing and result handling.
Since:
2021-06-17
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    Called when a new message/record appears.
  • Method Details

    • onMessage

      Result onMessage(MessageContext ctx)
      Deprecated.
      Called when a new message/record appears.
      Parameters:
      ctx - The context holding relevant information
      Returns:
      Information about the message handling. It is allowed to return null from this method.