public interface ServicePublisher
| Modifier and Type | Method and Description | 
|---|---|
| Future<Record> | publish(Record record)Like  publish(Record, Handler)but returns a future of the result | 
| void | publish(Record record,
       Handler<AsyncResult<Record>> resultHandler)Publishes a record. | 
| Future<Void> | unpublish(String id)Like  unpublish(String, Handler)but returns a future of the result | 
| void | unpublish(String id,
         Handler<AsyncResult<Void>> resultHandler)Un-publishes a record. | 
| Future<Record> | update(Record record)Like  update(Record, Handler)but returns a future of the result | 
| 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.Future<Record> publish(Record record)
publish(Record, Handler) but returns a future of the resultvoid unpublish(String id, Handler<AsyncResult<Void>> resultHandler)
id - the registration idresultHandler - handler called when the operation has completed (successfully or not).Future<Void> unpublish(String id)
unpublish(String, Handler) but returns a future of the resultvoid 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.Future<Record> update(Record record)
update(Record, Handler) but returns a future of the resultCopyright © 2021 Eclipse. All rights reserved.