Guest User

Untitled

a guest
Apr 25th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. //Not working
  2. KTable<String, Customer> customerKTable = streamsBuilder.table("customer", Consumed.with(Serdes.String(), customerSerde));
  3. customerKTable.foreach(((key, value) -> System.out.println("Customer from Topic: " + value)));
  4.  
  5. //KStream working
  6. KStream<String, Customer> customerKStream= streamsBuilder.stream("customer", Consumed.with(Serdes.String(), customerSerde));
  7. customerKStream.foreach(((key, value) -> System.out.println("Customer from Topic: " + value)))
Add Comment
Please, Sign In to add comment