-
Notifications
You must be signed in to change notification settings - Fork 35
3.8.3 Deprecations and breaking changes
Server WebSocket setHandshake(Promise<Integer>)
was actually a design issue and it has been replaced by setHandshake(Future<Integer>, Handler<AsyncResult<Integer>>)
.
Promise
has been introduced in Vert.x 3.8 and as mirror of the Future
API we added succeededPromise(Object)
, failedPromise(Throwable)
methods. In fact such creation of Promise
has no practical use case because any API consuming a Promise
shall mutate it and there is no point mutating a Promise
already completed. It is safer to just remove these methods rather than deprecating them and removing them in Vert.x 4.
useAffectedRows
has been supported and it can be used to enable/disable the CLIENT_FOUND_ROWS
flag when connecting to the server. CLIENT_FOUND_ROWS
is enabled by default now so the SqlResult#rowCount
method returns the found rows instead of affected rows for DML queries by default in MySQL.