Class HivemqV5MessageBinderTest.MyProcessor

  • Enclosing class:
    HivemqV5MessageBinderTest

    @SpringBootApplication
    public static class HivemqV5MessageBinderTest.MyProcessor
    extends Object
    A simple test processor.
    Author:
    Holger Eichelberger, SSE
    • Constructor Detail

      • MyProcessor

        public MyProcessor()
    • Method Detail

      • in

        @Bean
        public Supplier<String> in()
        Produces the inbound messages.
        Returns:
        supplier for inbound messages
      • transform

        @Bean
        public Function<String,​String> transform()
        Transforms the received input.
        Returns:
        function transforming the input
      • receiveInput

        @Bean
        public Consumer<String> receiveInput()
        Receives the bounced message from the binder.
        Returns:
        consumer instance
      • customMessageConverter

        @Bean
        public org.springframework.messaging.converter.MessageConverter customMessageConverter()
        Creates a custom message converter.
        Returns:
        the custom message converter