I am working on Spring cloud stream kafka streams binder. In my consumer bean method, I want to return KStream with List of String as value -
@Bean
public Function<KStream<Object, String>, KStream<String, List<String>>> method() {
return input -> {
/* business logic */
return KStream<String, List<String>>;
};
}
Is it possible to have a KStream with collection as its value? If so can anyone explain how to create it ?