@SuppressWarnings("unchecked") public static <T> T fromObject(Object obj) { if (obj instanceof JsonObject) { return (T)fromJsonObject((JsonObject)obj); } else if (obj instanceof JsonArray) { return (T)fromJsonArray((JsonArray)obj); } return (T)obj; }
@SuppressWarnings("unchecked") public static <T> T fromObject(Object obj) { if (obj instanceof JsonObject) { return (T)fromJsonObject((JsonObject)obj); } else if (obj instanceof JsonArray) { return (T)fromJsonArray((JsonArray)obj); } return (T)obj; }
public static io.vertx.ext.stomp.StompClientConnection commit(io.vertx.ext.stomp.StompClientConnection j_receiver, java.lang.String id, java.util.Map<String, java.lang.String> headers, io.vertx.core.Handler<java.util.Map<String, Object>> receiptHandler) { io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.commit(id, headers != null ? headers.entrySet().stream().collect(java.util.stream.Collectors.toMap(java.util.Map.Entry::getKey, entry -> entry.getValue())) : null, receiptHandler != null ? event -> receiptHandler.handle(event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null) : null)); return j_receiver; } public static io.vertx.ext.stomp.StompClientConnection abort(io.vertx.ext.stomp.StompClientConnection j_receiver, java.lang.String id, io.vertx.core.Handler<java.util.Map<String, Object>> receiptHandler) {
public static io.vertx.ext.stomp.StompClientConnection send(io.vertx.ext.stomp.StompClientConnection j_receiver, java.lang.String destination, java.util.Map<String, java.lang.String> headers, io.vertx.core.buffer.Buffer body, io.vertx.core.Handler<java.util.Map<String, Object>> receiptHandler) { io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.send(destination, headers != null ? headers.entrySet().stream().collect(java.util.stream.Collectors.toMap(java.util.Map.Entry::getKey, entry -> entry.getValue())) : null, body, receiptHandler != null ? event -> receiptHandler.handle(event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null) : null)); return j_receiver; } public static java.lang.String subscribe(io.vertx.ext.stomp.StompClientConnection j_receiver, java.lang.String destination, io.vertx.core.Handler<java.util.Map<String, Object>> handler) {
public static io.vertx.ext.stomp.StompClientConnection beginTX(io.vertx.ext.stomp.StompClientConnection j_receiver, java.lang.String id, java.util.Map<String, java.lang.String> headers, io.vertx.core.Handler<java.util.Map<String, Object>> receiptHandler) { io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.beginTX(id, headers != null ? headers.entrySet().stream().collect(java.util.stream.Collectors.toMap(java.util.Map.Entry::getKey, entry -> entry.getValue())) : null, receiptHandler != null ? event -> receiptHandler.handle(event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null) : null)); return j_receiver; } public static io.vertx.ext.stomp.StompClientConnection commit(io.vertx.ext.stomp.StompClientConnection j_receiver, java.lang.String id, io.vertx.core.Handler<java.util.Map<String, Object>> receiptHandler) {
public static io.vertx.ext.healthchecks.HealthChecks invoke(io.vertx.ext.healthchecks.HealthChecks j_receiver, io.vertx.core.Handler<java.util.Map<String, Object>> resultHandler) { io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.invoke(resultHandler != null ? event -> resultHandler.handle(io.vertx.core.impl.ConversionHelper.fromJsonObject(event)) : null)); return j_receiver; } public static io.vertx.ext.healthchecks.HealthChecks invoke(io.vertx.ext.healthchecks.HealthChecks j_receiver, java.lang.String name, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<String, Object>>> resultHandler) {
public static io.vertx.core.http.HttpClientResponse streamPriorityHandler(io.vertx.core.http.HttpClientResponse j_receiver, io.vertx.core.Handler<java.util.Map<String, Object>> handler) { io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.streamPriorityHandler(handler != null ? event -> handler.handle(event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null) : null)); return j_receiver; } }
public static io.vertx.ext.stomp.StompClientConnection disconnect(io.vertx.ext.stomp.StompClientConnection j_receiver, io.vertx.core.Handler<java.util.Map<String, Object>> receiptHandler) { io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.disconnect(receiptHandler != null ? event -> receiptHandler.handle(event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null) : null)); return j_receiver; } public static io.vertx.ext.stomp.StompClientConnection disconnect(io.vertx.ext.stomp.StompClientConnection j_receiver, java.util.Map<String, Object> frame) {
public static io.vertx.ext.stomp.StompClientConnection ack(io.vertx.ext.stomp.StompClientConnection j_receiver, java.lang.String id, java.lang.String txId, io.vertx.core.Handler<java.util.Map<String, Object>> receiptHandler) { io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.ack(id, txId, receiptHandler != null ? event -> receiptHandler.handle(event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null) : null)); return j_receiver; } public static io.vertx.ext.stomp.StompClientConnection nack(io.vertx.ext.stomp.StompClientConnection j_receiver, java.lang.String id, java.lang.String txId, io.vertx.core.Handler<java.util.Map<String, Object>> receiptHandler) {
public static io.vertx.ext.stomp.StompClient receivedFrameHandler(io.vertx.ext.stomp.StompClient j_receiver, io.vertx.core.Handler<java.util.Map<String, Object>> handler) { io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.receivedFrameHandler(handler != null ? event -> handler.handle(event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null) : null)); return j_receiver; } public static io.vertx.ext.stomp.StompClient writingFrameHandler(io.vertx.ext.stomp.StompClient j_receiver, io.vertx.core.Handler<java.util.Map<String, Object>> handler) {
public static io.vertx.ext.stomp.StompClient errorFrameHandler(io.vertx.ext.stomp.StompClient j_receiver, io.vertx.core.Handler<java.util.Map<String, Object>> handler) { io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.errorFrameHandler(handler != null ? event -> handler.handle(event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null) : null)); return j_receiver; } public static java.util.Map<String, Object> options(io.vertx.ext.stomp.StompClient j_receiver) {
public static io.vertx.core.http.HttpConnection goAwayHandler(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.goAwayHandler(handler != null ? event -> handler.handle(event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null) : null)); return j_receiver; } public static java.util.Map<String, Object> settings(io.vertx.core.http.HttpConnection j_receiver) {
public static io.vertx.ext.stomp.StompClientConnection abort(io.vertx.ext.stomp.StompClientConnection j_receiver, java.lang.String id, io.vertx.core.Handler<java.util.Map<String, Object>> receiptHandler) { io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.abort(id, receiptHandler != null ? event -> receiptHandler.handle(event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null) : null)); return j_receiver; } public static io.vertx.ext.stomp.StompClientConnection abort(io.vertx.ext.stomp.StompClientConnection j_receiver, java.lang.String id, java.util.Map<String, java.lang.String> headers, io.vertx.core.Handler<java.util.Map<String, Object>> receiptHandler) {
public static io.vertx.ext.stomp.StompClientConnection receivedFrameHandler(io.vertx.ext.stomp.StompClientConnection j_receiver, io.vertx.core.Handler<java.util.Map<String, Object>> handler) { io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.receivedFrameHandler(handler != null ? event -> handler.handle(event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null) : null)); return j_receiver; } public static io.vertx.ext.stomp.StompClientConnection writingFrameHandler(io.vertx.ext.stomp.StompClientConnection j_receiver, io.vertx.core.Handler<java.util.Map<String, Object>> handler) {
public static java.util.Map<String, Object> createRecord(io.vertx.servicediscovery.types.MessageSource j_receiver, java.lang.String name, java.lang.String address, java.lang.String type) { return io.vertx.servicediscovery.types.MessageSource.createRecord(name, address, type) != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(io.vertx.servicediscovery.types.MessageSource.createRecord(name, address, type).toJson()) : null; } public static java.util.Map<String, Object> createRecord(io.vertx.servicediscovery.types.MessageSource j_receiver, java.lang.String name, java.lang.String address) {
public static io.vertx.ext.stomp.StompClientConnection send(io.vertx.ext.stomp.StompClientConnection j_receiver, java.util.Map<String, Object> frame, io.vertx.core.Handler<java.util.Map<String, Object>> receiptHandler) { io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.send(frame != null ? new io.vertx.ext.stomp.Frame(io.vertx.core.impl.ConversionHelper.toJsonObject(frame)) : null, receiptHandler != null ? event -> receiptHandler.handle(event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null) : null)); return j_receiver; } public static io.vertx.ext.stomp.StompClientConnection send(io.vertx.ext.stomp.StompClientConnection j_receiver, java.lang.String destination, java.util.Map<String, java.lang.String> headers, io.vertx.core.buffer.Buffer body, io.vertx.core.Handler<java.util.Map<String, Object>> receiptHandler) {
public static java.util.Map<String, Object> createRecord(io.vertx.servicediscovery.types.EventBusService j_receiver, java.lang.String name, java.lang.String address, java.lang.String itf, java.util.Map<String, Object> metadata) { return io.vertx.servicediscovery.types.EventBusService.createRecord(name, address, itf, metadata != null ? io.vertx.core.impl.ConversionHelper.toJsonObject(metadata) : null) != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(io.vertx.servicediscovery.types.EventBusService.createRecord(name, address, itf, metadata != null ? io.vertx.core.impl.ConversionHelper.toJsonObject(metadata) : null).toJson()) : null; } public static <T>java.lang.Object getServiceProxy(io.vertx.servicediscovery.types.EventBusService j_receiver, io.vertx.servicediscovery.ServiceDiscovery discovery, java.util.function.Function<java.util.Map<String, Object>, java.lang.Boolean> filter, java.lang.Class<java.lang.Object> clientClass, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler) {
public static java.util.Map<String, Object> createRecord(io.vertx.servicediscovery.types.HttpEndpoint j_receiver, java.lang.String name, java.lang.String host, int port, java.lang.String root, java.util.Map<String, Object> metadata) { return io.vertx.servicediscovery.types.HttpEndpoint.createRecord(name, host, port, root, metadata != null ? io.vertx.core.impl.ConversionHelper.toJsonObject(metadata) : null) != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(io.vertx.servicediscovery.types.HttpEndpoint.createRecord(name, host, port, root, metadata != null ? io.vertx.core.impl.ConversionHelper.toJsonObject(metadata) : null).toJson()) : null; } public static java.util.Map<String, Object> createRecord(io.vertx.servicediscovery.types.HttpEndpoint j_receiver, java.lang.String name, boolean ssl, java.lang.String host, int port, java.lang.String root, java.util.Map<String, Object> metadata) {
public static java.util.Map<String, Object> createRecord(io.vertx.servicediscovery.types.MessageSource j_receiver, java.lang.String name, java.lang.String address, java.lang.String type, java.util.Map<String, Object> metadata) { return io.vertx.servicediscovery.types.MessageSource.createRecord(name, address, type, metadata != null ? io.vertx.core.impl.ConversionHelper.toJsonObject(metadata) : null) != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(io.vertx.servicediscovery.types.MessageSource.createRecord(name, address, type, metadata != null ? io.vertx.core.impl.ConversionHelper.toJsonObject(metadata) : null).toJson()) : null; } public static java.util.Map<String, Object> createRecord(io.vertx.servicediscovery.types.MessageSource j_receiver, java.lang.String name, java.lang.String address, java.lang.String type) {
public static java.util.Map<String, Object> createRecord(io.vertx.servicediscovery.types.RedisDataSource j_receiver, java.lang.String name, java.util.Map<String, Object> location, java.util.Map<String, Object> metadata) { return io.vertx.servicediscovery.types.RedisDataSource.createRecord(name, location != null ? io.vertx.core.impl.ConversionHelper.toJsonObject(location) : null, metadata != null ? io.vertx.core.impl.ConversionHelper.toJsonObject(metadata) : null) != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(io.vertx.servicediscovery.types.RedisDataSource.createRecord(name, location != null ? io.vertx.core.impl.ConversionHelper.toJsonObject(location) : null, metadata != null ? io.vertx.core.impl.ConversionHelper.toJsonObject(metadata) : null).toJson()) : null; } public static void getRedisClient(io.vertx.servicediscovery.types.RedisDataSource j_receiver, io.vertx.servicediscovery.ServiceDiscovery discovery, java.util.Map<String, Object> filter, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.redis.RedisClient>> resultHandler) {