Vertx3, init() vs start() verticle

398 views
Skip to first unread message

Igor Spasić

unread,
Mar 23, 2015, 7:07:36 AM3/23/15
to ve...@googlegroups.com
Hi there, in vertx3 Verticle interface has init() and start(Future) methods (and no javadoc;).

Which one should be used to define consumers and other event handlers? Is it init() or start(Future)? 

In 2.1 I was doing this in start().

Thanx!

Tim Fox

unread,
Mar 23, 2015, 7:10:30 AM3/23/15
to ve...@googlegroups.com
On 23/03/15 11:07, Igor Spasić wrote:
Hi there, in vertx3 Verticle interface has init() and start(Future) methods (and no javadoc;).


Which one should be used to define consumers and other event handlers? Is it init() or start(Future)? 

In 2.1 I was doing this in start().

Thanx!
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tim Fox

unread,
Mar 23, 2015, 7:12:00 AM3/23/15
to ve...@googlegroups.com
On 23/03/15 11:10, Tim Fox wrote:
On 23/03/15 11:07, Igor Spasić wrote:
Hi there, in vertx3 Verticle interface has init() and start(Future) methods (and no javadoc;).

No Javadoc? http://vert-x3.github.io/docs/apidocs/io/vertx/core/Verticle.html ;)

There's also quite a lot more information in the docs here http://vert-x3.github.io/docs/vertx-core/java/index.html#_writing_verticles

Julien Viet

unread,
Mar 23, 2015, 7:13:11 AM3/23/15
to ve...@googlegroups.com, Igor Spasić
Hi

which javadoc  are you referring to ?


-- 
Julien Viet
www.julienviet.com

Igor Spasić

unread,
Mar 23, 2015, 7:20:43 AM3/23/15
to ve...@googlegroups.com, igor....@gmail.com
Hi and thanx!!

I have just enabled v3.0-milestone2 in my gradle project; my IntelliJ downloads the `*-sources.jar`. For this release I only have the class javadoc, not for methods (im looking at the Vertx interface at the moment:). But I am fine with the github, as long as they are there ;)))

This seems to be the last published milestone on central repo, right?

Thank you!

Julien Viet

unread,
Mar 23, 2015, 7:26:41 AM3/23/15
to ve...@googlegroups.com, Igor Spasić, igor....@gmail.com
ok, we will correct the “groovydoc” :-)

-- 
Julien Viet
www.julienviet.com

Bogdan Mart

unread,
Jul 22, 2016, 12:39:46 PM7/22/16
to vert.x
Anoter question related to this topic.

Should I unregister eventBus consumers in vertx stop?
понедельник, 23 марта 2015 г., 13:07:36 UTC+2 пользователь Igor Spasić написал:

Julien Viet

unread,
Jul 22, 2016, 12:43:23 PM7/22/16
to ve...@googlegroups.com
no you don’t have to do that in a Verticle, Vert.x does that automatically for you: 




--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.

Bogdan Mart

unread,
Jul 22, 2016, 12:48:16 PM7/22/16
to ve...@googlegroups.com
Thanks

--
You received this message because you are subscribed to a topic in the Google Groups "vert.x" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vertx/TvwLxyXv0XE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vertx+un...@googlegroups.com.

Bogdan Mart

unread,
Jul 22, 2016, 12:48:34 PM7/22/16
to vert.x
Thanks

пятница, 22 июля 2016 г., 19:43:23 UTC+3 пользователь Julien Viet написал:
Reply all
Reply to author
Forward
0 new messages