Interface PayloadGenerator


  • public interface PayloadGenerator
    A payload generator is used to generate payloads for a Mqtt Publish.

    It can be implemented to be scoped to any subset of its parameters.

    Since:
    4.6.0
    • Method Detail

      • nextPayload

        @NotNull
        @NotNull ByteBuffer nextPayload​(@NotNull
                                        @NotNull PayloadGeneratorInput payloadGeneratorInput)
        Generate the next payload for the generator. Parameters may be ignored by the implementation.
        Returns:
        payload as ByteBuffer
        Since:
        4.6.0