Interface DiscoveryServiceProvider

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface DiscoveryServiceProvider
    The DiscoveryServiceProvider interface provides the possibility to build DiscoveryServices. DiscoveryService implementations should be immutable and therefore the provider is introduced to provide this ability. Every service should have its own provider, however in rare cases a single provider might create different DiscoveryService implementations based on the provided DiscoveryMode or other configuration details.
    Since:
    3.6
    • Method Detail

      • newDiscoveryService

        DiscoveryService newDiscoveryService​(DiscoveryServiceSettings settings)
        Instantiates a new instance of the DiscoveryService.
        Parameters:
        settings - The settings to pass to creation of the DiscoveryService
        Returns:
        a new instance of the discovery service