Module bus.extra

Interface Producer

All Superinterfaces:
AutoCloseable, Closeable

public interface Producer extends Closeable
Represents a message producer interface for Message Queue (MQ) systems. This interface defines the contract for sending messages to an MQ broker.
Since:
Java 17+
Author:
Kimi Liu
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    send(Message message)
    Sends a Message to the configured MQ topic or destination.

    Methods inherited from interface java.io.Closeable

    close
  • Method Details

    • send

      void send(Message message)
      Sends a Message to the configured MQ topic or destination. The implementation of this method will handle the actual transmission of the message.
      Parameters:
      message - The Message object to be sent.