Having looked through the Java
code, I don't think this is possible.
Vert.x
stores event bus consumers in a MultiMap
looking like:
AsyncMultiMap<String, ServerID>
where the String key
is the consumer address
.
And as you'd guess, Vert.x
just does a map.get(address)
to find out the relevant consumers.
Update after OP comment
While I think your use case is valid, I think you're going to have to roll something yourself.
As far as I can see, Vert.x doesn't store consumers of send
and publish
separately. It's all in one MultiMap
. So it would be inadvisable to try to register consumers for all events.
If someone does an eventBus.send()
, and Vert.x selects your auditing consumer, it will be the only consumer
receiving the event, and I'm going to guess that's not what you want.