--
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+unsubscribe@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/a0eee843-5bbd-476b-b5a1-7ff2c991d128%40googlegroups.com.
--
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.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/da9622b6-ccf0-4db9-b4c1-99b116bfc2d9%40googlegroups.com.
The http client makes the connection as soon as sendHead(), write(..) or end(..) is called, the connection request is sent using the current vertx thread or if you are calling from a main, a vertx thread obtained (it uses getOrCreateContext()). The callback will be done on this thread.you should wrap your code in a Verticle, it is very simple : https://github.com/vert-x3/vertx-examples/blob/master/core-examples/src/main/java/io/vertx/example/core/http/simple/Client.javaJulien
On Oct 4, 2016, at 11:54 PM, Igor Spasić <igor....@gmail.com> wrote:
The vertx HTTP client must be executed on some thread to call the target and wait for response.Which thread is it? It is not event loop, obviously. It is not the working thread (as far as I figured).So which thread is executing this?Or even more: how can I make my own client asynchronous in the same way vertx is? Just calling executeBlocking is not enoguh?Thank 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+unsubscribe@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/da9622b6-ccf0-4db9-b4c1-99b116bfc2d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/16C7AFE5-C7B8-453C-8761-2366DE10CCD5%40julienviet.com.
Hi Igor, Sorry I read that as nested async calls... Take to what other commenters have said.Probably show the code you already have so you can be better assisted.
On Wed, Oct 5, 2016 at 8:42 AM, Julien Viet <jul...@julienviet.com> wrote:
The http client makes the connection as soon as sendHead(), write(..) or end(..) is called, the connection request is sent using the current vertx thread or if you are calling from a main, a vertx thread obtained (it uses getOrCreateContext()). The callback will be done on this thread.you should wrap your code in a Verticle, it is very simple : https://github.com/vert-x3/vertx-examples/blob/master/core-examples/src/main/java/io/vertx/example/core/http/simple/Client.javaJulien
On Oct 4, 2016, at 11:54 PM, Igor Spasić <igor....@gmail.com> wrote:
The vertx HTTP client must be executed on some thread to call the target and wait for response.Which thread is it? It is not event loop, obviously. It is not the working thread (as far as I figured).So which thread is executing this?Or even more: how can I make my own client asynchronous in the same way vertx is? Just calling executeBlocking is not enoguh?Thank 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.
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/da9622b6-ccf0-4db9-b4c1-99b116bfc2d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/d1397ff6-b1d3-483c-8f38-1b71981c137c%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+unsubscribe@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/d4cd8596-77af-404d-b21a-4f0e2b73b67c%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+unsubscribe@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/d5262885-090c-418d-9007-123619ad1c47%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+unsubscribe@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/a2125c78-9014-414c-a806-3023a6dad201%40googlegroups.com.