Class MessagingTransformer<K,V,R>
- java.lang.Object
-
- org.springframework.kafka.streams.messaging.MessagingTransformer<K,V,R>
-
- Type Parameters:
K
- the key type.V
- the value type.R
- the result value type.
- All Implemented Interfaces:
org.apache.kafka.streams.kstream.Transformer<K,V,org.apache.kafka.streams.KeyValue<K,R>>
public class MessagingTransformer<K,V,R> extends java.lang.Object implements org.apache.kafka.streams.kstream.Transformer<K,V,org.apache.kafka.streams.KeyValue<K,R>>
ATransformer
implementation that invokes aMessagingFunction
converting to/from spring-messagingMessage
. Can be used, for example, to invoke a Spring Integration flow.- Since:
- 2.3
- Author:
- Gary Russell
-
-
Constructor Summary
Constructors Constructor Description MessagingTransformer(MessagingFunction function, MessagingMessageConverter converter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
init(org.apache.kafka.streams.processor.ProcessorContext context)
org.apache.kafka.streams.KeyValue<K,R>
transform(K key, V value)
-
-
-
Constructor Detail
-
MessagingTransformer
public MessagingTransformer(MessagingFunction function, MessagingMessageConverter converter)
-
-