/** * Closes the importer * @param closeHandler the handle to be notified when importer is closed, may be <code>null</code> */ public void close(Handler<Void> closeHandler) { delegate.close(closeHandler); }
/** * Close the exporter * @param closeHandler the handle to be notified when exporter is closed, may be <code>null</code> */ public void close(Handler<Void> closeHandler) { delegate.close(closeHandler); }
/** * Updates an existing record. * @param record the record * @param resultHandler handler called when the operation has completed (successfully or not). In case of success, the passed record has a registration id required to modify and un-register the service. */ public void update(Record record, Handler<AsyncResult<Record>> resultHandler) { delegate.update(record, resultHandler); }
/** * Publishes a record. * @param record the record * @param resultHandler handler called when the operation has completed (successfully or not). In case of success, the passed record has a registration id required to modify and un-register the service. */ public void publish(Record record, Handler<AsyncResult<Record>> resultHandler) { delegate.publish(record, resultHandler); }
/** * Un-publishes a record. * @param id the registration id * @param resultHandler handler called when the operation has completed (successfully or not). */ public void unpublish(String id, Handler<AsyncResult<Void>> resultHandler) { delegate.unpublish(id, resultHandler); }
/** * Notify a new record has been published, the record's registration can be used to uniquely * identify the record * @param record the record */ public void onPublish(Record record) { delegate.onPublish(record); }
/** * Notify an existing record has been updated, the record's registration can be used to uniquely * identify the record * @param record the record */ public void onUpdate(Record record) { delegate.onUpdate(record); }
public static void start(io.vertx.servicediscovery.spi.ServiceImporter j_receiver, io.vertx.core.Vertx vertx, io.vertx.servicediscovery.spi.ServicePublisher publisher, java.util.Map<String, Object> configuration, io.vertx.core.Future<java.lang.Void> future) { j_receiver.start(vertx, publisher, configuration != null ? io.vertx.core.impl.ConversionHelper.toJsonObject(configuration) : null, future); } }
public static void init(io.vertx.servicediscovery.spi.ServiceExporter j_receiver, io.vertx.core.Vertx vertx, io.vertx.servicediscovery.spi.ServicePublisher publisher, java.util.Map<String, Object> configuration, io.vertx.core.Future<java.lang.Void> future) { j_receiver.init(vertx, publisher, configuration != null ? io.vertx.core.impl.ConversionHelper.toJsonObject(configuration) : null, future); } public static void onPublish(io.vertx.servicediscovery.spi.ServiceExporter j_receiver, java.util.Map<String, Object> record) {
public synchronized static ServiceType get(String type) { load(); for (ServiceType next : types) { if (next.name().equalsIgnoreCase(type)) { return next; } } return null; } }
/** * Notify an existing record has been removed * @param id the record registration id */ public void onUnpublish(String id) { delegate.onUnpublish(id); }
@Before public void setUp() { vertx = Vertx.vertx(); backend = createBackend(); }
/** * Publishes a record. * @param record the record * @param resultHandler handler called when the operation has completed (successfully or not). In case of success, the passed record has a registration id required to modify and un-register the service. */ public void publish(Record record, Handler<AsyncResult<Record>> resultHandler) { delegate.publish(record, resultHandler); }
/** * Un-publishes a record. * @param id the registration id * @param resultHandler handler called when the operation has completed (successfully or not). */ public void unpublish(String id, Handler<AsyncResult<Void>> resultHandler) { delegate.unpublish(id, resultHandler); }
/** * Notify a new record has been published, the record's registration can be used to uniquely * identify the record * @param record the record */ public void onPublish(Record record) { delegate.onPublish(record); }
/** * Notify an existing record has been updated, the record's registration can be used to uniquely * identify the record * @param record the record */ public void onUpdate(Record record) { delegate.onUpdate(record); }
/** * Closes the importer * @param closeHandler the handle to be notified when importer is closed, may be <code>null</code> */ public void close(Handler<Void> closeHandler) { delegate.close(closeHandler); }
/** * Close the exporter * @param closeHandler the handle to be notified when exporter is closed, may be <code>null</code> */ public void close(Handler<Void> closeHandler) { delegate.close(closeHandler); }
/** * Updates an existing record. * @param record the record * @param resultHandler handler called when the operation has completed (successfully or not). In case of success, the passed record has a registration id required to modify and un-register the service. */ public void update(Record record, Handler<AsyncResult<Record>> resultHandler) { delegate.update(record, resultHandler); }
/** * Notify an existing record has been removed * @param id the record registration id */ public void onUnpublish(String id) { delegate.onUnpublish(id); }