AtomicInteger count = new AtomicInteger(); client.get(DEFAULT_HTTPS_PORT, DEFAULT_HTTPS_HOST, "/somepath", onFailure(resp -> {})).connectionHandler(conn -> { conn.remoteSettingsHandler(settings -> { switch (count.getAndIncrement()) { case 0:
assertEquals(initialSettings.get('\u0007'), initialRemoteSettings.get(7)); Context ctx = Vertx.currentContext(); conn.remoteSettingsHandler(settings -> { assertOnIOContext(ctx); switch (count.getAndIncrement()) {
/** * Set an handler that is called when remote endpoint {@link io.vertx.core.http.Http2Settings} are updated. * <p/> * This is not implemented for HTTP/1.x. * @param handler the handler for remote endpoint settings * @return a reference to this, so the API can be used fluently */ public io.vertx.rxjava.core.http.HttpConnection remoteSettingsHandler(Handler<Http2Settings> handler) { delegate.remoteSettingsHandler(handler); return this; }
/** * Set an handler that is called when remote endpoint {@link io.vertx.core.http.Http2Settings} are updated. * <p/> * This is not implemented for HTTP/1.x. * @param handler the handler for remote endpoint settings * @return a reference to this, so the API can be used fluently */ public io.vertx.rxjava.core.http.HttpConnection remoteSettingsHandler(Handler<Http2Settings> handler) { delegate.remoteSettingsHandler(handler); return this; }
public static io.vertx.core.http.HttpConnection remoteSettingsHandler(io.vertx.core.http.HttpConnection j_receiver, io.vertx.core.Handler<java.util.Map<String, Object>> handler) { io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.remoteSettingsHandler(handler != null ? event -> handler.handle(event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null) : null)); return j_receiver; } }
AtomicInteger count = new AtomicInteger(); client.get(DEFAULT_HTTPS_PORT, DEFAULT_HTTPS_HOST, "/somepath", resp -> fail()).connectionHandler(conn -> { conn.remoteSettingsHandler(settings -> { switch (count.getAndIncrement()) { case 0:
assertEquals(initialSettings.get('\u0007'), initialRemoteSettings.get(7)); Context ctx = Vertx.currentContext(); conn.remoteSettingsHandler(settings -> { assertOnIOContext(ctx); switch (count.getAndIncrement()) {