Class 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 the original non RX-ified interface using Vert.x codegen.

    • Constructor Detail

      • ServicePublisher

        public ServicePublisher​(Object delegate)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • publish

        public void publish​(Record record,
                            Handler<AsyncResult<Record>> resultHandler)
        Publishes a record.
        Parameters:
        record - the 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.
      • publish

        public void publish​(Record record)
        Publishes a record.
        Parameters:
        record - the record
      • rxPublish

        public io.reactivex.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 id
        resultHandler - 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 io.reactivex.Completable 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 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.
      • update

        public void update​(Record record)
        Updates an existing record.
        Parameters:
        record - the record
      • rxUpdate

        public io.reactivex.Single<Record> rxUpdate​(Record record)
        Updates an existing record.
        Parameters:
        record - the record
        Returns: