The publisher is used by the importer to publish or unpublish records.
| Constructor and description |
|---|
ServicePublisher
(java.lang.Object delegate) |
| Type | Name and description |
|---|---|
java.lang.Object |
getDelegate() |
void |
publish(java.util.Map<java.lang.String, java.lang.Object> record = [:], io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<java.lang.String, java.lang.Object>>> resultHandler)Publishes a record. |
void |
unpublish(java.lang.String id, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> resultHandler)Un-publishes a record. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Publishes a record.
record - the record (see Record)resultHandler - 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.Un-publishes a record.
id - the registration idresultHandler - handler called when the operation has completed (successfully or not).