Created
November 17, 2022 09:17
-
-
Save sebastienblanc/777f38132b2e08167c891bd6ad34ccb3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Incoming("product-in") | |
public Uni<Void> processProduct(Message<String> message) { | |
final Serde<Product> serde = DebeziumSerdes.payloadJson(Product.class); | |
serde.configure(Collections.singletonMap("from.field", "after"), false); | |
Product product = serde.deserializer().deserialize("product-in", message.getPayload().getBytes()); | |
//Do complicated stuff with product | |
Log.info(product.getName()); | |
return Uni.createFrom().nullItem(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment