Closed Sergey80 closed 6 years ago
I used to have: MessageConsumer consumer = getVertx().eventBus().consumer(eventBusAddress.value()).handler(proxyHandler); proxyHandler.setConsumer(consumer);
when switched to 3.5 there is no setConsumer(), that is the recommendation about it?
Thanks.
I think now you need to use the register method that does everything in one go:
proxyHandler.register(getVertx().eventBus(), eventBusAddress.value());
later on you call proxyHandler.unregister()
proxyHandler.unregister()
ok. thanks.
I used to have: MessageConsumer consumer = getVertx().eventBus().consumer(eventBusAddress.value()).handler(proxyHandler);
proxyHandler.setConsumer(consumer);
when switched to 3.5 there is no setConsumer(), that is the recommendation about it?
Thanks.