Interface ServicePublisher


public interface ServicePublisher
The publisher is used by the importer to publish or unpublish records.
Author:
Julien Viet
  • Method Details

    • publish

      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.
    • unpublish

      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).
    • update

      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.