Class ImportedConsulService


  • public class ImportedConsulService
    extends Object
    Structure holding a service imported from Consul and published in the Vert.x service discovery.
    Author:
    Clement Escoffier
    • Constructor Detail

      • ImportedConsulService

        public ImportedConsulService​(String name,
                                     String id,
                                     Record record)
        Creates a new instance of ImportedConsulService.
        Parameters:
        name - the service name
        id - the service id, may be the name
        record - the record (not yet registered)
    • Method Detail

      • name

        public String name()
        Returns:
        the name
      • unregister

        public void unregister​(ServicePublisher publiher,
                               Promise<Void> completion)
        Unregisters the service and completes the given future when done, if not null
        Parameters:
        publiher - the service publisher instance
        completion - the completion future