vert-x3 / issues

Apache License 2.0
37 stars 7 forks source link

Shared client configuration #626

Open vietj opened 1 year ago

vietj commented 1 year ago

Vert.x has introduced shared clients and used specific methods for this, e.g MyClient.createSharedClient(...), an alternative style based on options has been introduced in Vert.x 4 that reduce API verbosity and make it fully configured based on options.

// Style to mitigate
MyClient client = MyClient.createSharedClient(options, "the-name");

// 5.0 unified style
MyClient client = MyClient.create(options.setShared(true).setName("the-name"));