/** * Same as {@link io.vertx.rxjava.servicediscovery.types.MessageSource#createRecord} without additional metadata, and no type for * the payload. * @param name the name of the service * @param address the address on which the data is sent. * @return the created record */ public static Record createRecord(String name, String address) { Record ret = io.vertx.servicediscovery.types.MessageSource.createRecord(name, address); return ret; }
/** * Same as {@link #createRecord(String, String, String, JsonObject)} without additional metadata. * * @param name the name of the service * @param address the address on which the data is sent * @param type the type of payload * @return the created record */ static Record createRecord(String name, String address, String type) { return createRecord(name, address, type, null); }
/** * Same as {@link io.vertx.rxjava.servicediscovery.types.MessageSource#createRecord} without additional metadata, and no type for * the payload. * @param name the name of the service * @param address the address on which the data is sent. * @return the created record */ public static Record createRecord(String name, String address) { Record ret = io.vertx.servicediscovery.types.MessageSource.createRecord(name, address); return ret; }
/** * Same as {@link #createRecord(String, String, String, JsonObject)} without additional metadata. * * @param name the name of the service * @param address the address on which the data is sent * @param type the type of payload * @return the created record */ static Record createRecord(String name, String address, String type) { return createRecord(name, address, type, null); }
/** * Same as {@link #createRecord(String, String, Class, JsonObject)} without additional metadata, and no type for * the payload. * * @param name the name of the service * @param address the address on which the data is sent. * @return the created record */ static Record createRecord(String name, String address) { return createRecord(name, address, (String) null); }
/** * Create a record representing a data producer. * @param name the name of the service * @param address the address on which the data is sent * @param type the type of payload (fully qualified name of the class) * @param metadata additional metadata * @return the created record */ public static Record createRecord(String name, String address, String type, JsonObject metadata) { Record ret = io.vertx.servicediscovery.types.MessageSource.createRecord(name, address, type, metadata); return ret; }
/** * Same as {@link io.vertx.rxjava.servicediscovery.types.MessageSource#createRecord} without additional metadata. * @param name the name of the service * @param address the address on which the data is sent * @param type the type of payload * @return the created record */ public static Record createRecord(String name, String address, String type) { Record ret = io.vertx.servicediscovery.types.MessageSource.createRecord(name, address, type); return ret; }
/** * Create a record representing a data producer. * @param name the name of the service * @param address the address on which the data is sent * @param type the type of payload (fully qualified name of the class) * @param metadata additional metadata * @return the created record */ public static Record createRecord(String name, String address, String type, JsonObject metadata) { Record ret = io.vertx.servicediscovery.types.MessageSource.createRecord(name, address, type, metadata); return ret; }
/** * Same as {@link #createRecord(String, String, Class, JsonObject)} without additional metadata, and no type for * the payload. * * @param name the name of the service * @param address the address on which the data is sent. * @return the created record */ static Record createRecord(String name, String address) { return createRecord(name, address, (String) null); }
public static java.util.Map<String, Object> createRecord(io.vertx.servicediscovery.types.MessageSource j_receiver, java.lang.String name, java.lang.String address) { return io.vertx.servicediscovery.types.MessageSource.createRecord(name, address) != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(io.vertx.servicediscovery.types.MessageSource.createRecord(name, address).toJson()) : null; } public static <T>void getConsumer(io.vertx.servicediscovery.types.MessageSource j_receiver, io.vertx.servicediscovery.ServiceDiscovery discovery, java.util.Map<String, Object> filter, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.eventbus.MessageConsumer<java.lang.Object>>> resultHandler) {
/** * Create a record representing a data producer. * * @param name the name of the service * @param address the address on which the data is sent * @param type the type of payload * @param metadata additional metadata * @return the created record */ @GenIgnore static Record createRecord(String name, String address, Class type, JsonObject metadata) { return createRecord(name, address, type != null ? type.getName() : null, 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) { 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) {
/** * Same as {@link #createRecord(String, String, Class, JsonObject)} without additional metadata. * * @param name the name of the service * @param address the address on which the data is sent * @param type the type of payload * @return the created record */ @GenIgnore static Record createRecord(String name, String address, Class type) { return createRecord(name, address, type, null); }
/** * Same as {@link #createRecord(String, String, Class, JsonObject)} without additional metadata. * * @param name the name of the service * @param address the address on which the data is sent * @param type the type of payload * @return the created record */ @GenIgnore static Record createRecord(String name, String address, Class type) { return createRecord(name, address, type, null); }
public void publishMessageSource(String name, String address, Class<?> contentClass, Handler<AsyncResult<Void>> completionHandler) { Record record = MessageSource.createRecord(name, address, contentClass); publish(record, completionHandler); }
public void publishMessageSource(String name, String address, Handler<AsyncResult<Void>> completionHandler) { Record record = MessageSource.createRecord(name, address); publish(record, completionHandler); }
protected Single<Void> publishMessageSource(String name, String address) { Record record = MessageSource.createRecord(name, address); return publish(record); }
protected Future<Void> publishMessageSource(String name, String address) { Record record = MessageSource.createRecord(name, address); return publish(record); }
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) {
private Record createMessageSourceRecord(MessageSourceConfiguration configuration) { return MessageSource.createRecord(configuration.getName(), configuration.getAddress(), configuration.getMessageType(), configuration.getMetadata()); }