public interface ServiceExporter
Record and maps Record to a publication in this other
technology. The exporter is one side of a service discovery bridge.| Modifier and Type | Method and Description |
|---|---|
void |
close(Handler<Void> closeHandler)
Close the exporter
|
void |
init(Vertx vertx,
ServicePublisher publisher,
JsonObject configuration,
Promise<Void> future)
Starts the exporter.
|
void |
onPublish(Record record)
Notify a new record has been published, the record's registration can be used to uniquely
identify the record
|
void |
onUnpublish(String id)
Notify an existing record has been removed
|
void |
onUpdate(Record record)
Notify an existing record has been updated, the record's registration can be used to uniquely
identify the record
|
void init(Vertx vertx, ServicePublisher publisher, JsonObject configuration, Promise<Void> future)
vertx - the vertx instancepublisher - the service discovery instanceconfiguration - the bridge configuration if anyfuture - a future on which the bridge must report the completion of the startingvoid onPublish(Record record)
record - the recordvoid onUpdate(Record record)
record - the recordvoid onUnpublish(String id)
id - the record registration idCopyright © 2023 Eclipse. All rights reserved.