Modifier and Type | Field and Description |
---|---|
static TypeArg<ServicePublisher> |
__TYPE_ARG |
Constructor and Description |
---|
ServicePublisher(ServicePublisher delegate) |
Modifier and Type | Method and Description |
---|---|
ServicePublisher |
getDelegate() |
static ServicePublisher |
newInstance(ServicePublisher arg) |
void |
publish(Record record,
Handler<AsyncResult<Record>> resultHandler)
Publishes a record.
|
rx.Observable<Record> |
publishObservable(Record record)
Deprecated.
use
rxPublish(io.vertx.servicediscovery.Record) instead |
rx.Single<Record> |
rxPublish(Record record)
Publishes a record.
|
rx.Single<Void> |
rxUnpublish(String id)
Un-publishes a record.
|
void |
unpublish(String id,
Handler<AsyncResult<Void>> resultHandler)
Un-publishes a record.
|
rx.Observable<Void> |
unpublishObservable(String id)
Deprecated.
use
rxUnpublish(java.lang.String) instead |
public static final TypeArg<ServicePublisher> __TYPE_ARG
public ServicePublisher(ServicePublisher 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.@Deprecated public rx.Observable<Record> publishObservable(Record record)
rxPublish(io.vertx.servicediscovery.Record)
insteadrecord
- the recordpublic rx.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).@Deprecated public rx.Observable<Void> unpublishObservable(String id)
rxUnpublish(java.lang.String)
insteadid
- the registration idpublic rx.Single<Void> rxUnpublish(String id)
id
- the registration idpublic static ServicePublisher newInstance(ServicePublisher arg)
Copyright © 2017. All rights reserved.