Commit Graph

4171 Commits

Author SHA1 Message Date
Julien Viet
7fc8a7a93a Annotate EventBus body parameters with Nullable - see #3199 2019-11-17 11:34:14 +01:00
Radim Vansa
8370289db2 Replace LinkedBlockingQueue with LinkedTransferQueue in worker-pool
Signed-off-by: Radim Vansa <rvansa@redhat.com>
2019-11-16 13:36:39 +01:00
Julien Viet
ba74b71985 Improve MetricsTest#testBroadcastMessage to avoid race when the metrics has not yet fully published the collected metrics which are asserted 2019-11-15 13:01:28 +01:00
Julien Viet
d84bc2c99e Fix racy test DeploymentTest#testSimpleChildDeployment 2019-11-15 12:40:26 +01:00
Julien Viet
c4fec42922 HTTP/1 stream should synchronise when updating the connection stream - see #3196 2019-11-15 11:46:47 +01:00
Julien Viet
8374efd9e9 Refactor and move the HTTP/1 request creation/send in Http1xClientConnection 2019-11-15 11:41:21 +01:00
Julien Viet
24c4526440 Internal refactor of the deployment to decouple the DeploymentManager from the VerticleFactory management and classloading. The DeploymentManager now deploys Callable<Verticle> instead of Supplier<Verticle> and only cares about that, the newly introduced VerticleManager provides Callable<Verticle> to the DeploymentManager for creating Verticle instances. This also changes the VerticleFactory creation contract as it fixes #3195 2019-11-13 23:47:02 +01:00
zenios
58f2c881ba Fixes incomplete promise when a child verticle could not be deployed … (#3186)
* Fixes incomplete promise when a child verticle could not be deployed because its parent has been undeployed

Signed-off-by: zenios <dimitris.zenios@gmail.com>

* Added tests

Signed-off-by: zenios <dimitris.zenios@gmail.com>

* Fail the promise after undeploy is completed

Signed-off-by: zenios <dimitris.zenios@gmail.com>

* Simplify test using onSuccess / onFailure

Signed-off-by: zenios <dimitris.zenios@gmail.com>

* Use await / testComplete instead of CountDownLatch

Signed-off-by: zenios <dimitris.zenios@gmail.com>
2019-11-13 23:25:01 +01:00
Julien Viet
97d3614496 Minor rename 2019-11-12 14:31:01 +01:00
Julien Viet
f1537e7116 Change the Closeable contract to provide a promise instead of an handler - closes #3192 2019-11-12 14:25:24 +01:00
Julien Viet
c725646ae5 Rework HttpServer close 2019-11-10 16:39:01 +01:00
Julien Viet
50ce8341f8 Use correct promises in HttpServer.listen 2019-11-10 14:33:48 +01:00
Julien Viet
86ea4440d9 Cache ConnectionBase localAddress / remoteAddress instances - see #3185 2019-11-07 19:21:26 +01:00
Lukas Prettenthaler
06561c4f84 add yaml to mimetypes
Signed-off-by: Lukas Prettenthaler <rdx@wsn.at>
2019-11-07 18:52:23 +01:00
Julien Viet
8434965a03 ContextInternal now extends Executor that executes tasks on the context 2019-11-06 13:58:38 +01:00
Julien Viet
a0da1387db Remove unused code 2019-11-06 13:48:32 +01:00
Julien Viet
f4725543bf Minor fixes in WorkerExecutorImpl 2019-11-06 09:33:01 +01:00
Julien Viet
78d129f3f5 Rename context methods executeFromIO to emitFromIO and execute to emit 2019-11-06 08:39:16 +01:00
Julien Viet
faa02df46d Merge pull request #3176 from eclipse-vertx/multi-futures
Multi futures
2019-11-04 14:31:05 +01:00
Julien Viet
57e8b75cac PR feedback 2019-11-04 13:49:40 +01:00
Julien Viet
98622f270c Terminal Future method callbacks - see #3175 2019-11-04 10:59:25 +01:00
Julien Viet
0416ca5979 Future should handle multiple handlers instead of a single - see #3174 2019-11-04 10:59:14 +01:00
Julien Viet
8295da5067 MessageConsumer unregistration cleanup 2019-11-04 10:46:55 +01:00
Julien Viet
15e694ca63 WorkerExecutor close() should return a Future<Void> 2019-11-04 10:46:38 +01:00
Julien Viet
f490d45892 JsonObject equality should check the map keys instead of the sizes -closes #3170 2019-11-03 09:11:20 +01:00
Julien Viet
07b6ad2e80 AsyncMap should use context promises 2019-11-03 00:36:48 +01:00
Julien Viet
07fe826f3c Remove unused Vertx instance in AsyncMapTest leaking file descriptor 2019-10-31 16:33:26 +01:00
Julien Viet
f59a6fc901 Use right future style in MessageProducerImpl 2019-10-31 09:09:33 +01:00
Julien Viet
77e925b683 Cleanup 2019-10-30 21:58:00 +01:00
Julien Viet
1fce3dc1f5 Update cluster manager to return a Future instead of using a callback - closes #3166 2019-10-30 12:19:42 +01:00
Julien Viet
ed2ea884d8 Avoid using Promise.promise in HTTP/2 ping/pong pong frame handler 2019-10-29 21:43:42 +01:00
Julien Viet
37b437da98 Avoid using Promise.promise for DatagramSocket 2019-10-29 21:38:55 +01:00
Julien Viet
8a74e1544b Catch throwable instead of exception in Future#future(Handler) factory method 2019-10-29 20:58:02 +01:00
Julien Viet
d625c10d6b Minor improvement of executeBlocking methods with futures 2019-10-29 14:49:22 +01:00
Julien Viet
39d0fed1cd Fix test not passing for domain sockets due to not using the correct address in client 2019-10-29 09:58:32 +01:00
Julien Viet
034ef54098 Expose client context internally 2019-10-28 18:22:19 +01:00
Julien Viet
471b3a32fb Use context futures in Vert.x API - fixes #3164 2019-10-28 14:05:05 +01:00
Julien Viet
6defdbfb94 Context promise/future - fixes #3163 2019-10-28 14:01:47 +01:00
Julien Viet
7dcfa8c80f Add an execute(T,Handler<T>) method on ContextInternal to execute a context task from anywhere 2019-10-28 12:47:37 +01:00
Julien Viet
80e1cc7e85 Rework HTTP client 2019-10-25 11:14:02 +02:00
Julien Viet
a655b9b4c4 Obtain context in HttpClientRequest when the request is created and not at connect time 2019-10-25 10:49:42 +02:00
Julien Viet
48751f950a Improve Netty promise/future listener adapter and use it when possible 2019-10-25 10:49:42 +02:00
Julien Viet
707ad8c1bb NetSocketInternal#writeMessage(Object) should return a Future<Void> and not be fluent 2019-10-25 10:32:38 +02:00
Julien Ponge
1ab9884cb2 Update copyright notices
This also:

1. updates copyright to 2011-2019,
2. adds missing headers,
3. harmonizes to "Contributors to the Eclipse Foundation"
   (replacing a "Copyright Red Hat, Inc." by that is correct).

Signed-off-by: Julien Ponge <julien.ponge@gmail.com>
2019-10-24 15:09:37 +02:00
Julien Viet
8dbface343 Merge pull request #3158 from vietj/event-bus-iso
Event bus improvements
2019-10-23 20:05:01 +02:00
Julien Viet
474b35eb48 Introduce specific classes to split behavior/state between MessageConsumer implementation and ReplyHandler implementations delegating to HandlerRegistration 2019-10-23 18:47:13 +02:00
Julien Viet
157f59dcf4 Remove src field from MessageImpl as it can be avoided 2019-10-20 09:22:30 +02:00
Julien Viet
64ee11b0a1 Improve event bus tracing so that the response is traced when it is sent 2019-10-20 09:20:18 +02:00
Julien Viet
dcf3174cab Add address on HandlerHolder 2019-10-20 09:20:18 +02:00
Julien Viet
deadcc1f93 Remove unecessary method param 2019-10-20 09:20:18 +02:00