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(io.vertx.core.Handler<Void> closeHandler)
Close the exporter
|
void |
init(io.vertx.core.Vertx vertx,
ServicePublisher publisher,
io.vertx.core.json.JsonObject configuration,
io.vertx.core.Future<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(io.vertx.core.Vertx vertx, ServicePublisher publisher, io.vertx.core.json.JsonObject configuration, io.vertx.core.Future<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 idvoid close(io.vertx.core.Handler<Void> closeHandler)
closeHandler
- the handle to be notified when exporter is closed, may be null
Copyright © 2017. All rights reserved.