The service exporter allows integrate other discovery technologies with the Vert.x service discovery. It maps entries from another technology to a and maps to a publication in this other technology. The exporter is one side of a service discovery bridge.
Constructor and description |
---|
ServiceExporter
(java.lang.Object delegate) |
Type | Name and description |
---|---|
void |
close(io.vertx.core.Handler<java.lang.Void> closeHandler) Close the exporter |
java.lang.Object |
getDelegate() |
void |
onPublish(java.util.Map<java.lang.String, java.lang.Object> record = [:]) Notify a new record has been published, the record's registration can be used to uniquely identify the record |
void |
onUnpublish(java.lang.String id) Notify an existing record has been removed |
void |
onUpdate(java.util.Map<java.lang.String, java.lang.Object> record = [:]) Notify an existing record has been updated, the record's registration can be used to uniquely identify the record |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Close the exporter
closeHandler
- the handle to be notified when exporter is closedNotify a new record has been published, the record's registration can be used to uniquely identify the record
record
- the record (see Record)Notify an existing record has been removed
id
- the record registration idNotify an existing record has been updated, the record's registration can be used to uniquely identify the record
record
- the record (see Record)