Interface ServiceConfig

  • All Known Implementing Classes:
    SimpleServiceConfig

    public interface ServiceConfig
    Service configuration, wraps both (optional) LoadBalancer configuration and (required) ServiceDiscovery configuration for a single service
    • Method Detail

      • serviceName

        String serviceName()
        Returns:
        (required) name of the service
      • loadBalancer

        LoadBalancerConfig loadBalancer()
        LoadBalancer configuration or null if the service is meant only to only be mapped to a list of services
        Returns:
        (optional) load balancer configuration
      • serviceDiscovery

        ServiceDiscoveryConfig serviceDiscovery()
        ServiceDiscovery configuration for the service
        Returns:
        (required) service discovery configuration
      • secure

        boolean secure()
        Whether the communication should use a secure connection (e.g. HTTPS)
        Returns:
        true if SSL, TLS, etc. should be used for the communication