vert-x3 / vertx-service-proxy

EventBus Proxy generation
Apache License 2.0
66 stars 58 forks source link

proxyHandler.setConsumer(consumer) in 3.5 #60

Closed Sergey80 closed 6 years ago

Sergey80 commented 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.

vietj commented 6 years ago

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()

Sergey80 commented 6 years ago

ok. thanks.