public class ServicePublisher extends Object
original non RX-ified interface using Vert.x codegen.| Modifier and Type | Field and Description |
|---|---|
static TypeArg<ServicePublisher> |
__TYPE_ARG |
| Constructor and Description |
|---|
ServicePublisher(Object delegate) |
ServicePublisher(io.vertx.servicediscovery.spi.ServicePublisher delegate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
io.vertx.servicediscovery.spi.ServicePublisher |
getDelegate() |
int |
hashCode() |
static ServicePublisher |
newInstance(io.vertx.servicediscovery.spi.ServicePublisher arg) |
void |
publish(io.vertx.servicediscovery.Record record,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.servicediscovery.Record>> resultHandler)
Publishes a record.
|
io.reactivex.Single<io.vertx.servicediscovery.Record> |
rxPublish(io.vertx.servicediscovery.Record record)
Publishes a record.
|
io.reactivex.Completable |
rxUnpublish(String id)
Un-publishes a record.
|
io.reactivex.Single<io.vertx.servicediscovery.Record> |
rxUpdate(io.vertx.servicediscovery.Record record)
Updates an existing record.
|
String |
toString() |
void |
unpublish(String id,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
Un-publishes a record.
|
void |
update(io.vertx.servicediscovery.Record record,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.servicediscovery.Record>> resultHandler)
Updates an existing record.
|
public static final TypeArg<ServicePublisher> __TYPE_ARG
public ServicePublisher(io.vertx.servicediscovery.spi.ServicePublisher delegate)
public ServicePublisher(Object delegate)
public io.vertx.servicediscovery.spi.ServicePublisher getDelegate()
public void publish(io.vertx.servicediscovery.Record record,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.servicediscovery.Record>> resultHandler)
record - the recordresultHandler - handler called when the operation has completed (successfully or not). In case of success, the passed record has a registration id required to modify and un-register the service.public io.reactivex.Single<io.vertx.servicediscovery.Record> rxPublish(io.vertx.servicediscovery.Record record)
record - the recordpublic void unpublish(String id, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
id - the registration idresultHandler - handler called when the operation has completed (successfully or not).public io.reactivex.Completable rxUnpublish(String id)
id - the registration idpublic void update(io.vertx.servicediscovery.Record record,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.servicediscovery.Record>> resultHandler)
record - the recordresultHandler - handler called when the operation has completed (successfully or not). In case of success, the passed record has a registration id required to modify and un-register the service.public io.reactivex.Single<io.vertx.servicediscovery.Record> rxUpdate(io.vertx.servicediscovery.Record record)
record - the recordpublic static ServicePublisher newInstance(io.vertx.servicediscovery.spi.ServicePublisher arg)
Copyright © 2022 Eclipse. All rights reserved.