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.

    • Field Detail

      • __TYPE_ARG

        public static final io.vertx.lang.rx.TypeArg<ServicePublisher> __TYPE_ARG
    • Constructor Detail

      • ServicePublisher

        public ServicePublisher​(Object delegate)
    • Method Detail

      • hashCode

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

        public Future<Record> publish​(Record record)
        Publishes a record.
        Parameters:
        record - the record
        Returns:
        a future notified 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.
      • rxPublish

        public Single<Record> rxPublish​(Record record)
        Publishes a record.
        Parameters:
        record - the record
        Returns:
        a future notified 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.
      • unpublish

        public Future<Void> unpublish​(String id)
        Un-publishes a record.
        Parameters:
        id - the registration id
        Returns:
        a future notified when the operation has completed (successfully or not).
      • rxUnpublish

        public Completable rxUnpublish​(String id)
        Un-publishes a record.
        Parameters:
        id - the registration id
        Returns:
        a future notified when the operation has completed (successfully or not).
      • update

        public Future<Record> update​(Record record)
        Updates an existing record.
        Parameters:
        record - the record
        Returns:
        a future notified 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.
      • rxUpdate

        public Single<Record> rxUpdate​(Record record)
        Updates an existing record.
        Parameters:
        record - the record
        Returns:
        a future notified 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.