Class AbstractConfigurationDiscoveryService<A extends ServiceInstance,B,C extends TrafficPolicy<A,B>,D>

java.lang.Object
io.inverno.mod.discovery.AbstractDiscoveryService<A,B,C>
io.inverno.mod.discovery.AbstractConfigurationDiscoveryService<A,B,C,D>
Type Parameters:
A - the type of service instance
B - the type of service request
C - the type of traffic policy
D - the service descriptor type
All Implemented Interfaces:
DiscoveryService<A,B,C>

public abstract class AbstractConfigurationDiscoveryService<A extends ServiceInstance,B,C extends TrafficPolicy<A,B>,D> extends AbstractDiscoveryService<A,B,C>

Base configuration based discovery service implementation.

Service descriptors specifying the service instances and traffic policy are resolved from a ConfigurationSource and unmarshalled using readServiceDescriptor(String). They are then used to actually create the service using createService(ServiceID, Mono).

Since:
1.12
Author:
Jeremy Kuhn
  • Constructor Details

    • AbstractConfigurationDiscoveryService

      public AbstractConfigurationDiscoveryService(Set<String> supportedSchemes, String serviceKeyPrefix, ConfigurationSource configurationSource)

      Creates a configuration discovery service.

      Parameters:
      supportedSchemes - the set of supported schemes
      serviceKeyPrefix - the prefix to prepend to the service name when retrieving descriptors from configuration
      configurationSource - the configuration source
  • Method Details