package io.vertx.groovy.core.eventbus;
public class EventBus_GroovyExtension {
public static io.vertx.core.eventbus.EventBus send(io.vertx.core.eventbus.EventBus j_receiver, java.lang.String address, java.lang.Object message) {
io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.send(address,
io.vertx.core.impl.ConversionHelper.toObject(message)));
return j_receiver;
}
public static <T>io.vertx.core.eventbus.EventBus send(io.vertx.core.eventbus.EventBus j_receiver, java.lang.String address, java.lang.Object message, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<java.lang.Object>>> replyHandler) {
io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.send(address,
io.vertx.core.impl.ConversionHelper.toObject(message),
replyHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<java.lang.Object>>>() {
public void handle(io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<java.lang.Object>> ar) {
replyHandler.handle(ar.map(event -> io.vertx.core.impl.ConversionHelper.fromObject(event)));
}
} : null));
return j_receiver;
}
public static io.vertx.core.eventbus.EventBus send(io.vertx.core.eventbus.EventBus j_receiver, java.lang.String address, java.lang.Object message, java.util.Map<String, Object> options) {
io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.send(address,
io.vertx.core.impl.ConversionHelper.toObject(message),
options != null ? new io.vertx.core.eventbus.DeliveryOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null));
return j_receiver;
}
public static <T>io.vertx.core.eventbus.EventBus send(io.vertx.core.eventbus.EventBus j_receiver, java.lang.String address, java.lang.Object message, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<java.lang.Object>>> replyHandler) {
io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.send(address,
io.vertx.core.impl.ConversionHelper.toObject(message),
options != null ? new io.vertx.core.eventbus.DeliveryOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
replyHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<java.lang.Object>>>() {
public void handle(io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<java.lang.Object>> ar) {
replyHandler.handle(ar.map(event -> io.vertx.core.impl.ConversionHelper.fromObject(event)));
}
} : null));
return j_receiver;
}
public static <T>io.vertx.core.eventbus.EventBus request(io.vertx.core.eventbus.EventBus j_receiver, java.lang.String address, java.lang.Object message, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<java.lang.Object>>> replyHandler) {
io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.request(address,
io.vertx.core.impl.ConversionHelper.toObject(message),
replyHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<java.lang.Object>>>() {
public void handle(io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<java.lang.Object>> ar) {
replyHandler.handle(ar.map(event -> io.vertx.core.impl.ConversionHelper.fromObject(event)));
}
} : null));
return j_receiver;
}
public static <T>io.vertx.core.eventbus.EventBus request(io.vertx.core.eventbus.EventBus j_receiver, java.lang.String address, java.lang.Object message, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<java.lang.Object>>> replyHandler) {
io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.request(address,
io.vertx.core.impl.ConversionHelper.toObject(message),
options != null ? new io.vertx.core.eventbus.DeliveryOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
replyHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<java.lang.Object>>>() {
public void handle(io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<java.lang.Object>> ar) {
replyHandler.handle(ar.map(event -> io.vertx.core.impl.ConversionHelper.fromObject(event)));
}
} : null));
return j_receiver;
}
public static io.vertx.core.eventbus.EventBus publish(io.vertx.core.eventbus.EventBus j_receiver, java.lang.String address, java.lang.Object message) {
io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.publish(address,
io.vertx.core.impl.ConversionHelper.toObject(message)));
return j_receiver;
}
public static io.vertx.core.eventbus.EventBus publish(io.vertx.core.eventbus.EventBus j_receiver, java.lang.String address, java.lang.Object message, java.util.Map<String, Object> options) {
io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.publish(address,
io.vertx.core.impl.ConversionHelper.toObject(message),
options != null ? new io.vertx.core.eventbus.DeliveryOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null));
return j_receiver;
}
public static <T>io.vertx.core.eventbus.MessageProducer<java.lang.Object> sender(io.vertx.core.eventbus.EventBus j_receiver, java.lang.String address, java.util.Map<String, Object> options) {
return io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.sender(address,
options != null ? new io.vertx.core.eventbus.DeliveryOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null));
}
public static <T>io.vertx.core.eventbus.MessageProducer<java.lang.Object> publisher(io.vertx.core.eventbus.EventBus j_receiver, java.lang.String address, java.util.Map<String, Object> options) {
return io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.publisher(address,
options != null ? new io.vertx.core.eventbus.DeliveryOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null));
}
}