I'm new to quarkus, I would like to listen to a kafka topic but only in some environments.
@Incoming("my-topic")
public void consumeCreation(Record<String, MyClass> record) {
MyClass teste = record.value();
(more code...)
}
I will use this topic to do some mocking, and I don't want to listen to it in the production environment. Is there any way to not run the @Incoming based on a variable?
Thanks for help.