public interface ServicePublisher
Modifier and Type | Method and Description |
---|---|
void |
publish(Record record,
Handler<AsyncResult<Record>> resultHandler)
Publishes a record.
|
void |
unpublish(String id,
Handler<AsyncResult<Void>> resultHandler)
Un-publishes a record.
|
void |
update(Record record,
Handler<AsyncResult<Record>> resultHandler)
Updates an existing record.
|
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.void unpublish(String id, Handler<AsyncResult<Void>> resultHandler)
id
- the registration idresultHandler
- handler called when the operation has completed (successfully or not).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.Copyright © 2023 Eclipse. All rights reserved.