Are Event Bus methods thread safe?

180 views
Skip to first unread message

ad...@cs.miami.edu

unread,
Oct 10, 2016, 11:35:12 AM10/10/16
to vert.x
Hi,

If I have mutliple threads that have reference to the same EventBus, are calls to the EventBus methods thread safe (like Send and Publish)?

Thanks,

-Adam

Julien Viet

unread,
Oct 11, 2016, 3:16:21 AM10/11/16
to ve...@googlegroups.com
yes they are.

you can call the EventBus outside the event loop also (this seems related to your other thread about publishing from a servler) if you want, but the replies will be on a Vert.x context

--
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.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/23f617af-15ab-4192-8272-21d74a359df8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

ad...@cs.miami.edu

unread,
Oct 11, 2016, 10:50:32 AM10/11/16
to vert.x
Hi,

Thanks for the clarification.

0Adam
Reply all
Reply to author
Forward
0 new messages