Interface RegistryService

  • All Known Implementing Classes:
    NoopRegistryService

    public interface RegistryService
    Contract for implementations of a service registry.
    • Method Detail

      • createCandidateFrom

        ServiceInstance createCandidateFrom​(ServiceInfo serviceInfo)
        Creates a new ServiceInstance instance from a ServiceInfo that can be registered with the registry server.
        Parameters:
        serviceInfo - Service information that will be used to setup a new instance to be registered.
        Returns:
        The ServiceInstance object that was created
      • register

        ServiceInstance register​(ServiceInstance serviceToRegister)
        Registers a ServiceInstance with the registry server and returns a new instance containing information about the registered instance.
        Parameters:
        serviceToRegister - The service information to register
        Returns:
        The service instance that was registered
      • unregister

        void unregister()
        Unregisters any registrations that were previously registered. This should be a NO-OP if nothing has ever been registered.