Interface KafkaToMqttTransformer

  • All Superinterfaces:
    Transformer<KafkaToMqttInitInput>
    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 KafkaToMqttTransformer
    extends Transformer<KafkaToMqttInitInput>
    Implement this transformer for the programmatic creation of Publishes from KafkaRecords. One instance of the implementing class is created per reference in the kafka-configuration.xml. The methods of this interface may be called concurrently and must be thread-safe.

    Your implementation of the KafkaToMqttTransformer must be placed in a Java archive (.jar) together with all its dependencies in the customizations folder of the "HiveMQ Enterprise Extension for Kafka". In addition, a <kafka-to-mqtt-transformer> referencing the implementing class via its canonical name must be configured in the kafka-extension.xml file.

    Since:
    4.5.0