Module bus.extra

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
A functional interface for handling incoming Message objects from a Message Queue (MQ) system. Implementations of this interface define the logic for processing messages received by a consumer.
Since:
Java 17+
Author:
Kimi Liu
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handle(Message message)
    Handles the incoming message.
  • Method Details

    • handle

      void handle(Message message)
      Handles the incoming message. This method is invoked when a new message is received by the consumer.
      Parameters:
      message - The Message object to be handled.