diff --git a/index.html b/index.html index d4a41e0..1c3b9b5 100644 --- a/index.html +++ b/index.html @@ -610,6 +610,7 @@

Migrate from Vert.x 4 to 5

  • Automatic forwarding of Redis subscriptions to the Vert.x event bus
  • RedisCluster.groupByNodes() changed return type + code generation changes
  • JSON serialization/deserialization of RedisOptions
  • +
  • Options addEndpoint/setEndpoint replacements
  • Vert.x Health Check @@ -617,6 +618,33 @@

    Migrate from Vert.x 4 to 5

  • Health checks dependencies improvements
  • +
  • Vert.x Circuit Breaker + +
  • +
  • Vert.x MQTT + +
  • +
  • Vert.x Mail Client + +
  • +
  • Vert.x JUnit 5 + +
  • +
  • Vert.x Service Proxy + +
  • Vert.x Reactive Extensions
  • Vert.x Dropwizard Metrics @@ -639,6 +669,8 @@

    Migrate from Vert.x 4 to 5

  • Vert.x Hazelcast @@ -1046,13 +1078,13 @@

    Vert.x instance customization

    Customizing an instance with a Dropwizard metrics registry
    -
    // Before
    +
    // 4.x
     Vertx vertx = Vertx.vertx(new VertxOptions()
      .setMetricsOptions(new DropwizardMetricsOptions()
        .setMetricsRegistry(myRegistry)
        .setEnabled(true)));
     
    -// After
    +// 5.0
     Vertx vertx = Vertx.builder()
       .with(new VertxOptions()
         .setMetricsOptions(new DropwizardMetricsOptions()
    @@ -1089,6 +1121,36 @@ 

    Removal

    +

    Removal of HTTP server response push with a string authority

    +
    +

    HttpServerResponse#push methods with a string authority have been removed in favour of the same method with an HostAndPort type instead.

    +
    +
    +
    +
    // 4.x
    +response.push(httpMethod, authorityAsString path);
    +
    +// 5.0
    +response.push(httpMethod, HostAndPort.parse(authorityAsString) path);
    +
    +
    +
    +
    + +
    +

    The deprecated HttpServerRequest#cookieMap method has been removed, instead the HttpServerRequest#cookies method should be used.

    +
    +
    +
    +
    // 4.x
    +Map<String, Cookie> cookieMap = request.cookieMap();
    +
    +// 5.0
    +Set<Cookie> cookies = request.cookies();
    +
    +
    +
    +

    Use of uniform byte distributor for HTTP/2 streams

    The default stream byte distributor use stream priorities to determine the amount of bytes to be sent for each stream, this change allows to use a strategy that does not use stream priorities and yields better performance since it consumes less CPU.

    @@ -1985,6 +2047,21 @@

    JSON serialization/d

    If you rely on the JSON form of RedisOptions objects, note that the endpoint, connectionString and connectionStrings members of the JSON object are no longer recognized by the deserializer and are no longer generated by the serializer. Ensure that the necessary information is present in the endpoints member.

    +
    +

    Options addEndpoint/setEndpoint replacements

    +
    +

    RedisOptions#addEndpoint and RedisOptions#setEndpoint are replaced by RedisOptions#addConnectionString and RedisOptions#setConnectionString

    +
    +
    +
    +
    // 4.x
    +options.setEndpoint(location);
    +
    +// 4.x
    +options.setConnectionString(location);
    +
    +
    +
    @@ -2011,6 +2088,156 @@

    Health checks dependencies imp

    +

    Vert.x Circuit Breaker

    +
    +
    +

    Remove deprecated for removal retry policy

    +
    +

    The circuit breaker retry policy with a Java function argument has been removed after deprecation in 4.x.

    +
    +
    +

    Instead, the RetryPolicy functional interface should be used.

    +
    +
    +
    +
    // 4.x
    +breaker.retryPolicy(retryCount -> 5);
    +
    +// 5.0
    +breaker.retryPolicy((failure, retryCount) -> 5);
    +
    +
    +
    +
    +
    +
    +

    Vert.x MQTT

    +
    +
    +

    Client options will message string getter/setter deprecated removal

    +
    +

    Client options will message string getter/setter have been removed after deprecation in 4.x.

    +
    +
    +

    Instead, the Buffer version should be used

    +
    +
    +
    +
    // 4.x
    +options.setWillMessage(str);
    +
    +// 5.0
    +options.setWillMessageBytes(Buffer.buffer(str));
    +
    +
    +
    +
    +
    +
    +

    Vert.x Mail Client

    +
    +
    +

    Remove deprecated MailConfig setKeyStore/setKeyStorePassword

    +
    +

    Remove deprecated MailConfig#setKeyStore and MailConfig#setKeyStorePassword properties.

    +
    +
    +

    Instead, use MailConfig#setTrustOptions.

    +
    +
    +
    +
    // 4.x
    +options.setKeyStore(trustStorePath);
    +options.setKeyStorePassword(trustStorePassword);
    +
    +// 5.0
    +options.setTrustOptions(new JksOptions().setPath(trustStorePath).setPassword(trustStorePassword));
    +
    +
    +
    +
    +
    +
    +

    Vert.x JUnit 5

    +
    +
    +

    Remove deprecated test context succeeding

    +
    +

    Instead, use succeedingThenComplete() or succeeding(Handler).

    +
    +
    +
    +
    // 4.x
    +someFuture.onComplete(testContext.succeeding());
    +
    +// 5.0
    +someFuture.onComplete(testContex.succeedingThenComplete());
    +
    +
    +
    +
    +
    +
    +

    Vert.x Service Proxy

    +
    +
    +

    ServiceAuthInterceptor removal

    +
    +

    Instead, use AuthorizationInterceptor.

    +
    +
    +
    +
    // 4.x
    +new ServiceBinder(vertx)
    +   .addInterceptor(new ServiceAuthInterceptor()...)
    +   .register(SomeService.class, service);
    +
    +// 5.0
    +new ServiceBinder(vertx)
    +   .addInterceptor(AuthorizationInterceptor.create(authorizationProvider)...)
    +   .register(SomeService.class, service);
    +
    +
    +
    +
    +

    ServiceBinder functionnal interceptor

    +
    +

    The ServiceBinder#addInterceptor(Function) and ServiceBinder#addInterceptor(String, Function) have been removed in favor of the variant with the ServiceInterceptor functional interface.

    +
    +
    +
    +
    // 4.x
    +binder.addInterceptor(msg -> vertx.timer(10, TimeUnit.MILLISECONDS).map(msg));
    +
    +// 5.0
    +binder.addInterceptor((vertx, interceptorContext, body) -> vertx.timer(10, TimeUnit.MILLISECONDS).map(body));
    +
    +
    +
    +
    +

    Removal of ProxyHelper util class

    +
    +

    The ProxyHelper util class is removed in favor of ServiceProxyBuilder / ServiceBinder equivalents.

    +
    +
    +
    +
    // 4.x
    +ProxyHelper.registerService(MyService.class, vertx, service, "the-address");
    +MyService proxy = ProxyHelper.createProxy(MyService.class, vertx, "the-address");
    +
    +// 5.0
    +new ServiceBinder(vertx)
    +  .setAddress("the-address")
    +  .register(MyService.class, service);
    +MyService proxy = new ServiceProxyBuilder(vertx)
    +  .setAddress("the-address")
    +  .build(MyService.class)
    +
    +
    +
    +
    +
    +

    Vert.x Reactive Extensions

    @@ -2157,6 +2384,35 @@

    Remove setting a registry on opti

    +
    +

    Remove InfluxDB options number of threads

    +
    +

    VertxInfluxDbOptions#getNumThreads and VertxInfluxDbOptions#setNumThreads are no longer used.

    +
    +
    +
    +
    // 4.x
    +influxDbOptions.setNumThreads(numThreads);
    +
    +// 5.0
    +
    +
    +
    +
    +

    Rename metrics options request tag provider

    +
    +

    VertxMicrometerMetricsOptions#setRequestTagsProvider and VertxMicrometerMetricsOptions#getRequestTagsProvider are removed in favour of VertxMicrometerMetricsOptions#setServerRequestTagsProvider and VertxMicrometerMetricsOptions#getServerRequestTagsProvider.

    +
    +
    +
    +
    // 4.x
    +options.setRequestsTagsProvider(provider);
    +
    +// 5.0
    +options.setServerRequestsTagsProvider(provider);
    +
    +
    +
    @@ -2250,6 +2506,18 @@

    Additional Error Types

    +
    +

    Removal of SchemaType INT constant

    +
    +

    Instead, use SchemaType#INTEGER.

    +
    +
    +
    +

    Remove of ValidationException createException methods

    +
    +

    Instead, use the same signature ValidationException#create replacements.

    +
    +
    @@ -2272,7 +2540,7 @@

    Upgrade to Hazelcast 5.3