- 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
DiscoveryServiceProviderinterface provides the possibility to build
DiscoveryServiceimplementations 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
DiscoveryServiceimplementations based on the provided
DiscoveryModeor other configuration details.
newDiscoveryServiceInstantiates a new instance of the
settings- The settings to pass to creation of the
- a new instance of the discovery service