Home > Net >  Vert.x @ConsumeEvent with regex
Vert.x @ConsumeEvent with regex

Time:01-11

I am using this to consume events reserved to "telemetry-feed-1". I am using "io.quarkus.vertx.ConsumeEvent" with quarkus. I want to use regEx like "telemetry-feed-.*" to reserve any channel that start with "telemetry-feed-". any one know how I can do this. Thank you very much.

@ConsumeEvent("telemetry-feed-1" )
public void publishMatchingSubscriptions(String message) throws Exception {
   // process data
}

CodePudding user response:

The @ConsumeEvent annotation in Quarkus just makes the use of io.vertx.core.eventbus.EventBus easier and since the latter does not support regex, neither does the annotation

  • Related