Class representing a Kafka producer request. This action sends a message to a Kafka topic, optionally including a key for the message.

Hierarchy (View Summary)

Constructors

Properties

Constructors

  • Creates an instance of the KafkaProducerRequest class.

    Parameters

    • topic: string

      The Kafka topic to send the message to.

    • message: string

      The message to be sent to the Kafka topic.

    • Optionalkey: string

      The optional key for the Kafka message.

    Returns KafkaProducerRequest

Properties

key?: string

The optional key associated with the message.

message: string

The message to be sent to the Kafka topic.

topic: string

The Kafka topic to which the message will be sent.

type: string

The type of the action, specific to Kafka producer requests.