Migration to Vertx 5
Migration to Vertx 5
Please add any missing hints to this document!
See TC’s draft of Officially Supported Technologies / Trillium document.
Help
Ask on #development Slack channel if a module doesn’t build with Vert.x 5.
Offical Guide
https://vertx.io/docs/guides/vertx-5-migration-guide/
Notable breaking changes
ChattyResponsePredicate
removed. UseChattyHttpResponseExpectation
instead. Example:
Old:client .get(8080, "example.com", "/some-uri") .expect(ChattyResponsePredicate.SC_SUCCESS) .send()
New:
client .get(8080, "example.com", "/some-uri") .send() // new order! .expecting(ChattyHttpResponseExpectation.SC_SUCCESS)
GenericCompositeFuture
removed. The same methods exists in Vert.x'Future
now.Futurization of
Verticle
:AbstractVerticle
becomesVerticleBase
public void start(Promise<Void> promise)
becomespublic Future<?> start()
public void stop(Promise<Void> promise)
becomespublic Future<?> stop()
, multiple selections available,