Class ServicePublisher
- java.lang.Object
-
- io.vertx.rxjava.servicediscovery.spi.ServicePublisher
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<ServicePublisher>__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description ServicePublisher(ServicePublisher delegate)ServicePublisher(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)ServicePublishergetDelegate()inthashCode()static ServicePublishernewInstance(ServicePublisher arg)voidpublish(Record record)Publishes a record.voidpublish(Record record, Handler<AsyncResult<Record>> resultHandler)Publishes a record.rx.Single<Record>rxPublish(Record record)Publishes a record.rx.Single<Void>rxUnpublish(String id)Un-publishes a record.rx.Single<Record>rxUpdate(Record record)Updates an existing record.StringtoString()voidunpublish(String id)Un-publishes a record.voidunpublish(String id, Handler<AsyncResult<Void>> resultHandler)Un-publishes a record.voidupdate(Record record)Updates an existing record.voidupdate(Record record, Handler<AsyncResult<Record>> resultHandler)Updates an existing record.
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<ServicePublisher> __TYPE_ARG
-
-
Constructor Detail
-
ServicePublisher
public ServicePublisher(ServicePublisher delegate)
-
ServicePublisher
public ServicePublisher(Object delegate)
-
-
Method Detail
-
getDelegate
public ServicePublisher getDelegate()
-
publish
public void publish(Record record, Handler<AsyncResult<Record>> resultHandler)
Publishes a record.- Parameters:
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.
-
publish
public void publish(Record record)
Publishes a record.- Parameters:
record- the record
-
rxPublish
public rx.Single<Record> rxPublish(Record record)
Publishes a record.- Parameters:
record- the record- Returns:
-
unpublish
public void unpublish(String id, Handler<AsyncResult<Void>> resultHandler)
Un-publishes a record.- Parameters:
id- the registration idresultHandler- handler called when the operation has completed (successfully or not).
-
unpublish
public void unpublish(String id)
Un-publishes a record.- Parameters:
id- the registration id
-
rxUnpublish
public rx.Single<Void> rxUnpublish(String id)
Un-publishes a record.- Parameters:
id- the registration id- Returns:
-
update
public void update(Record record, Handler<AsyncResult<Record>> resultHandler)
Updates an existing record.- Parameters:
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.
-
update
public void update(Record record)
Updates an existing record.- Parameters:
record- the record
-
rxUpdate
public rx.Single<Record> rxUpdate(Record record)
Updates an existing record.- Parameters:
record- the record- Returns:
-
newInstance
public static ServicePublisher newInstance(ServicePublisher arg)
-
-