public class ServiceExporter extends Object
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<ServiceExporter> |
__TYPE_ARG |
Constructor and Description |
---|
ServiceExporter(Object delegate) |
ServiceExporter(ServiceExporter delegate) |
Modifier and Type | Method and Description |
---|---|
void |
close(Handler<Void> closeHandler)
Close the exporter
|
boolean |
equals(Object o) |
ServiceExporter |
getDelegate() |
int |
hashCode() |
void |
init(Vertx vertx,
ServicePublisher publisher,
JsonObject configuration,
Promise<Void> future)
Starts the exporter.
|
static ServiceExporter |
newInstance(ServiceExporter arg) |
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
|
String |
toString() |
public static final io.vertx.lang.rx.TypeArg<ServiceExporter> __TYPE_ARG
public ServiceExporter(ServiceExporter delegate)
public ServiceExporter(Object delegate)
public ServiceExporter getDelegate()
public 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 startingpublic void onPublish(Record record)
record
- the recordpublic void onUpdate(Record record)
record
- the recordpublic void onUnpublish(String id)
id
- the record registration idpublic void close(Handler<Void> closeHandler)
closeHandler
- the handle to be notified when exporter is closed, may be null
public static ServiceExporter newInstance(ServiceExporter arg)
Copyright © 2022 Eclipse. All rights reserved.