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
TheDiscoveryServiceProvider
interface provides the possibility to buildDiscoveryService
s.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 differentDiscoveryService
implementations based on the providedDiscoveryMode
or other configuration details.- Since:
- 3.6
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DiscoveryService
newDiscoveryService(DiscoveryServiceSettings settings)
Instantiates a new instance of theDiscoveryService
.
-
-
-
Method Detail
-
newDiscoveryService
DiscoveryService newDiscoveryService(DiscoveryServiceSettings settings)
Instantiates a new instance of theDiscoveryService
.- Parameters:
settings
- The settings to pass to creation of theDiscoveryService
- Returns:
- a new instance of the discovery service
-
-