| Constructor and Description |
|---|
ServicePublisher(ServicePublisher delegate) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getDelegate() |
static ServicePublisher |
newInstance(ServicePublisher arg) |
void |
publish(Record record,
Handler<AsyncResult<Record>> resultHandler)
Publishes a record.
|
Observable<Record> |
publishObservable(Record record)
Publishes a record.
|
void |
unpublish(String id,
Handler<AsyncResult<Void>> resultHandler)
Un-publishes a record.
|
Observable<Void> |
unpublishObservable(String id)
Un-publishes a record.
|
public ServicePublisher(ServicePublisher delegate)
public Object 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 Observable<Record> publishObservable(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 Observable<Void> unpublishObservable(String id)
id - the registration idpublic static ServicePublisher newInstance(ServicePublisher arg)
Copyright © 2016. All rights reserved.