Class ServiceExporter
java.lang.Object
io.vertx.rxjava3.servicediscovery.spi.ServiceExporter
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
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.
NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClose the exporterbooleaninthashCode()voidinit(Vertx vertx, ServicePublisher publisher, JsonObject configuration, Promise<Void> future) Starts the exporter.static ServiceExportervoidNotify a new record has been published, the record's registration can be used to uniquely identify the recordvoidonUnpublish(String id) Notify an existing record has been removedvoidNotify an existing record has been updated, the record's registration can be used to uniquely identify the recordtoString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
ServiceExporter
-
ServiceExporter
-
-
Method Details
-
toString
-
equals
-
hashCode
-
getDelegate
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
init
public void init(Vertx vertx, ServicePublisher publisher, JsonObject configuration, Promise<Void> future) Starts the exporter.- Parameters:
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 starting
-
onPublish
Notify a new record has been published, the record's registration can be used to uniquely identify the record- Parameters:
record- the record
-
onUpdate
Notify an existing record has been updated, the record's registration can be used to uniquely identify the record- Parameters:
record- the record
-
onUnpublish
Notify an existing record has been removed- Parameters:
id- the record registration id
-
close
-
newInstance
-