Class HivemqV5MessageBinderTest.MyProcessor
- java.lang.Object
-
- test.de.iip_ecosphere.platform.transport.spring.binder.hivemqv5.HivemqV5MessageBinderTest.MyProcessor
-
- Enclosing class:
- HivemqV5MessageBinderTest
@SpringBootApplication public static class HivemqV5MessageBinderTest.MyProcessor extends Object
A simple test processor.- Author:
- Holger Eichelberger, SSE
-
-
Constructor Summary
Constructors Constructor Description MyProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.messaging.converter.MessageConvertercustomMessageConverter()Creates a custom message converter.Supplier<String>in()Produces the inbound messages.Consumer<String>receiveInput()Receives the bounced message from the binder.Function<String,String>transform()Transforms the received input.
-
-
-
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
-
-