Class ServiceExporter
java.lang.Object
io.vertx.mutiny.servicediscovery.spi.ServiceExporter
- All Implemented Interfaces:
MutinyDelegate
The service exporter allows integrate other discovery technologies with the Vert.x service discovery. It maps
entries from another technology to a
Record
and maps Record
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 Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionServiceExporter
(io.vertx.servicediscovery.spi.ServiceExporter delegate) ServiceExporter
(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
io.vertx.servicediscovery.spi.ServiceExporter
int
hashCode()
void
init
(Vertx vertx, ServicePublisher publisher, io.vertx.core.json.JsonObject configuration, Promise<Void> future) static ServiceExporter
newInstance
(io.vertx.servicediscovery.spi.ServiceExporter arg) void
onPublish
(io.vertx.servicediscovery.Record record) void
onUnpublish
(String id) void
onUpdate
(io.vertx.servicediscovery.Record record) toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
ServiceExporter
public ServiceExporter(io.vertx.servicediscovery.spi.ServiceExporter delegate) -
ServiceExporter
-
-
Method Details
-
getDelegate
public io.vertx.servicediscovery.spi.ServiceExporter getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
init
public void init(Vertx vertx, ServicePublisher publisher, io.vertx.core.json.JsonObject configuration, Promise<Void> future) - 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
public void onPublish(io.vertx.servicediscovery.Record record) - Parameters:
record
- the record
-
onUpdate
public void onUpdate(io.vertx.servicediscovery.Record record) - Parameters:
record
- the record
-
onUnpublish
- Parameters:
id
- the record registration id
-
close
- Parameters:
closeHandler
- the handle to be notified when exporter is closed, may benull
-
newInstance
-