Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<ServicePublisher> |
__TYPE_ARG |
Constructor and Description |
---|
ServicePublisher(Object delegate) |
ServicePublisher(ServicePublisher delegate) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
ServicePublisher |
getDelegate() |
int |
hashCode() |
static ServicePublisher |
newInstance(ServicePublisher arg) |
void |
publish(Record record)
Publishes a record.
|
void |
publish(Record record,
Handler<AsyncResult<Record>> resultHandler)
Publishes a record.
|
Single<Record> |
rxPublish(Record record)
Publishes a record.
|
Single<Void> |
rxUnpublish(String id)
Un-publishes a record.
|
Single<Record> |
rxUpdate(Record record)
Updates an existing record.
|
String |
toString() |
void |
unpublish(String id)
Un-publishes a record.
|
void |
unpublish(String id,
Handler<AsyncResult<Void>> resultHandler)
Un-publishes a record.
|
void |
update(Record record)
Updates an existing record.
|
void |
update(Record record,
Handler<AsyncResult<Record>> resultHandler)
Updates an existing record.
|
public static final io.vertx.lang.rx.TypeArg<ServicePublisher> __TYPE_ARG
public ServicePublisher(ServicePublisher delegate)
public ServicePublisher(Object delegate)
public ServicePublisher getDelegate()
public void publish(Record record, Handler<AsyncResult<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 void publish(Record record)
record
- the recordpublic Single<Record> rxPublish(Record record)
record
- the recordpublic void unpublish(String id, Handler<AsyncResult<Void>> resultHandler)
id
- the registration idresultHandler
- handler called when the operation has completed (successfully or not).public void unpublish(String id)
id
- the registration idpublic Single<Void> rxUnpublish(String id)
id
- the registration idpublic void update(Record record, Handler<AsyncResult<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 void update(Record record)
record
- the recordpublic Single<Record> rxUpdate(Record record)
record
- the recordpublic static ServicePublisher newInstance(ServicePublisher arg)
Copyright © 2023 Eclipse. All rights reserved.