Class ServicePublisher
- java.lang.Object
-
- io.vertx.rxjava.servicediscovery.spi.ServicePublisher
-
public class ServicePublisher extends Object
The publisher is used by the importer to publish or unpublish records. NOTE: This class has been automatically generated from theoriginal
non RX-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<ServicePublisher>
__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description ServicePublisher(io.vertx.servicediscovery.spi.ServicePublisher delegate)
ServicePublisher(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
io.vertx.servicediscovery.spi.ServicePublisher
getDelegate()
int
hashCode()
static ServicePublisher
newInstance(io.vertx.servicediscovery.spi.ServicePublisher arg)
void
publish(io.vertx.servicediscovery.Record record)
Publishes a record.void
publish(io.vertx.servicediscovery.Record record, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.servicediscovery.Record>> resultHandler)
Publishes a record.rx.Single<io.vertx.servicediscovery.Record>
rxPublish(io.vertx.servicediscovery.Record record)
Publishes a record.rx.Single<Void>
rxUnpublish(String id)
Un-publishes a record.rx.Single<io.vertx.servicediscovery.Record>
rxUpdate(io.vertx.servicediscovery.Record record)
Updates an existing record.String
toString()
void
unpublish(String id)
Un-publishes a record.void
unpublish(String id, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
Un-publishes a record.void
update(io.vertx.servicediscovery.Record record)
Updates an existing record.void
update(io.vertx.servicediscovery.Record record, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.servicediscovery.Record>> resultHandler)
Updates an existing record.
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<ServicePublisher> __TYPE_ARG
-
-
Constructor Detail
-
ServicePublisher
public ServicePublisher(io.vertx.servicediscovery.spi.ServicePublisher delegate)
-
ServicePublisher
public ServicePublisher(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.servicediscovery.spi.ServicePublisher getDelegate()
-
publish
public void publish(io.vertx.servicediscovery.Record record, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.servicediscovery.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(io.vertx.servicediscovery.Record record)
Publishes a record.- Parameters:
record
- the record
-
rxPublish
public rx.Single<io.vertx.servicediscovery.Record> rxPublish(io.vertx.servicediscovery.Record record)
Publishes a record.- Parameters:
record
- the record- Returns:
-
unpublish
public void unpublish(String id, io.vertx.core.Handler<io.vertx.core.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(io.vertx.servicediscovery.Record record, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.servicediscovery.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(io.vertx.servicediscovery.Record record)
Updates an existing record.- Parameters:
record
- the record
-
rxUpdate
public rx.Single<io.vertx.servicediscovery.Record> rxUpdate(io.vertx.servicediscovery.Record record)
Updates an existing record.- Parameters:
record
- the record- Returns:
-
newInstance
public static ServicePublisher newInstance(io.vertx.servicediscovery.spi.ServicePublisher arg)
-
-