Interface ServiceDiscovery


  • public interface ServiceDiscovery
    Interface to retrieve the list of all available service instances for a given service.
    • Method Detail

      • getServiceInstances

        io.smallrye.mutiny.Uni<List<ServiceInstance>> getServiceInstances()
        Retrieves the service instances.

        This retrieval is an asynchronous action, thus, the method returns a Uni

        Returns:
        all `ServiceInstance`'s for the service
      • initialize

        default void initialize​(Map<String,​Service> services)
        Optional initialization. This method will be invoked after all service discoveries and load balancers are registered in Stork
        Parameters:
        services - a map of all defined services by name, helpful with creating service discovery implementations that combine results from multiple services